From 592fc5b3495bf4ff17252d31109f1d9c0134684b Mon Sep 17 00:00:00 2001 From: Elijah Newren Date: Sat, 22 Apr 2023 20:17:18 +0000 Subject: dir.h: move DTYPE defines from cache.h Signed-off-by: Elijah Newren Signed-off-by: Junio C Hamano --- cache.h | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'cache.h') diff --git a/cache.h b/cache.h index 6955745ccc..ad741e70bc 100644 --- a/cache.h +++ b/cache.h @@ -10,20 +10,6 @@ #include "object.h" #include "statinfo.h" -#if defined(DT_UNKNOWN) && !defined(NO_D_TYPE_IN_DIRENT) -#define DTYPE(de) ((de)->d_type) -#else -#undef DT_UNKNOWN -#undef DT_DIR -#undef DT_REG -#undef DT_LNK -#define DT_UNKNOWN 0 -#define DT_DIR 1 -#define DT_REG 2 -#define DT_LNK 3 -#define DTYPE(de) DT_UNKNOWN -#endif - /* * Some mode bits are also used internally for computations. * -- cgit v1.3-5-g9baa