]> git.ipfire.org Git - thirdparty/git.git/commit
statinfo.h: move DTYPE defines from dir.h
authorAlejandro R. Sedeño <asedeno@mit.edu>
Tue, 6 Jun 2023 20:59:35 +0000 (16:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 12 Jun 2023 17:59:01 +0000 (10:59 -0700)
commit03bf92b9bfee808667588e65645c5427114a5634
tree3e171f3376c1a15bd68ede9641e9e69618d8a3e7
parente3a3f5edf52c7f6161b167058b4d7c3a31dc0c3b
statinfo.h: move DTYPE defines from dir.h

592fc5b3 (dir.h: move DTYPE defines from cache.h, 2023-04-22) moved
DTYPE macros from cache.h to dir.h, but they are still used by cache.h
to implement ce_to_dtype(); cache.h cannot include dir.h because that
would cause name-hash.c to have two different and conflicting
definitions of `struct dir_entry`. (That should be separately fixed.)

Both dir.h and cache.h include statinfo.h, and this seems a reasonable
place for these definitions.

This change fixes a broken build issue on old SunOS.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Signed-off-by: Alejandro R Sedeño <asedeno@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.h
statinfo.h