foxygit / doom Log in
commit cbf852c192dfe84047ca79d4f8408a6346846c68
Author:     Roman Fomin <rfomin@gmail.com>
AuthorDate: Wed Sep 11 21:05:23 2024 +0700
Commit:     Roman Fomin <rfomin@gmail.com>
CommitDate: Wed Sep 11 21:05:23 2024 +0700

    Fix macro redefinition warnings.
---
 src/i_glob.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/i_glob.c b/src/i_glob.c
index 8b761283..79c3e898 100644
--- a/src/i_glob.c
+++ b/src/i_glob.c
@@ -26,7 +26,9 @@

 #if defined(_WIN32)
 #include <win_opendir.h>
+#ifndef S_ISDIR
 #define S_ISDIR(m)      (((m)& S_IFMT) == S_IFDIR)
+#endif
 #elif defined(HAVE_DIRENT_H)
 #include <dirent.h>
 #include <sys/stat.h>