An attempt to make this more Unix-friendly.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 02 Aug 2012 03:03:06 -0400
changeset 1295 02a34500bb1c
parent 1293 990c1cf58bfa
child 1297 d842cd8c9f91
An attempt to make this more Unix-friendly.
src/physfs_platforms.h
--- a/src/physfs_platforms.h	Mon Jun 25 15:50:20 2012 -0400
+++ b/src/physfs_platforms.h	Thu Aug 02 03:03:06 2012 -0400
@@ -43,11 +43,11 @@
 #  define PHYSFS_PLATFORM_SOLARIS 1
 #  define PHYSFS_PLATFORM_UNIX 1
 #  define PHYSFS_PLATFORM_POSIX 1
-#elif defined(BSD)
+#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__bsdi__) || defined(__DragonFly__)
 #  define PHYSFS_PLATFORM_BSD 1
 #  define PHYSFS_PLATFORM_UNIX 1
 #  define PHYSFS_PLATFORM_POSIX 1
-#elif defined(unix)
+#elif defined(unix) || defined(__unix__)
 #  define PHYSFS_PLATFORM_UNIX 1
 #  define PHYSFS_PLATFORM_POSIX 1
 #else