Skip to content

Commit 6f24d75

Browse files
committed
Remove unnecessary decls, php.h is included
1 parent 4363588 commit 6f24d75

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

ext/fileinfo/libmagic/apprentice.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,6 @@ static const struct type_tbl_s special_tbl[] = {
263263
# undef XX
264264
# undef XX_NULL
265265

266-
#ifndef S_ISDIR
267-
#define S_ISDIR(mode) ((mode) & _S_IFDIR)
268-
#endif
269-
270266
private int
271267
get_type(const struct type_tbl_s *tbl, const char *l, const char **t)
272268
{

ext/fileinfo/libmagic/fsmagic.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,6 @@ FILE_RCSID("@(#)$File: fsmagic.c,v 1.77 2017/05/24 19:17:50 christos Exp $")
6868

6969
# undef S_IFIFO
7070
#endif
71-
72-
73-
#ifndef S_ISDIR
74-
#define S_ISDIR(mode) ((mode) & _S_IFDIR)
75-
#endif
76-
77-
#ifndef S_ISREG
78-
#define S_ISREG(mode) ((mode) & _S_IFREG)
79-
#endif
80-
8171
private int
8272
handle_mime(struct magic_set *ms, int mime, const char *str)
8373
{

0 commit comments

Comments
 (0)