]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - tools/quake3/common/vfs.h
rework GDEF_OS macros
[xonotic/netradiant.git] / tools / quake3 / common / vfs.h
index 9026a29691506bd782d76dd46ad5bb4af745c7fa..310d67c56a3120956e0f96921e31f8dc122aba8f 100644 (file)
 
 // to get PATH_MAX
 #include <stdio.h>
-#if GDEF_OS_LINUX || GDEF_OS_MACOS
-#include <dirent.h>
-#include <unistd.h>
-#else
+
+#if GDEF_OS_WINDOWS
 #include <wtypes.h>
 #include <io.h>
 #define S_ISDIR( mode ) ( mode & _S_IFDIR )
 #define PATH_MAX 260
-#endif
+#else // !GDEF_OS_WINDOWS
+#include <dirent.h>
+#include <unistd.h>
+#endif // !GDEF_OS_WINDOWS
 
 #define VFS_MAXDIRS 64