]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - platform.h
who let the cat out?
[xonotic/gmqcc.git] / platform.h
index 27abc644fc5b7eb23f3cbf4bef376b7fc253b1ae..bb7656816d9a84e9f5dff928d96fbe3ac61f6fec 100644 (file)
             int                dd_stat;
             char               dd_name[1];
         } DIR;
-
-#       ifdef S_ISDIR
-#           undef  S_ISDIR
-#       endif /*! S_ISDIR */
-#       define S_ISDIR(X) ((X)&_S_IFDIR)
 #   else
 #       include <dirent.h>
 #   endif /*!__MINGW32__*/
+
+#   ifndef S_ISDIR
+#       define S_ISDIR(X) ((X)&_S_IFDIR)
+#   endif
 #else
 #   include <sys/types.h>
 #   include <sys/stat.h>