Fix up physfs.h for compilers that are sensitive about preprocessor defines.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Apr 2018 10:06:38 -0400
changeset 1642 ccfe2177e394
parent 1639 46561a309895
child 1643 2653b3bc19c9
Fix up physfs.h for compilers that are sensitive about preprocessor defines.
(transplanted from db8f944df5c56f0244229813203fb5b24e8d9968)
src/physfs.h
--- a/src/physfs.h	Sat Mar 24 00:19:59 2018 -0400
+++ b/src/physfs.h	Thu Apr 19 10:06:38 2018 -0400
@@ -225,11 +225,11 @@
 
 #if defined(PHYSFS_DECL)
 /* do nothing. */
-#elif (defined _MSC_VER)
+#elif defined(_MSC_VER)
 #define PHYSFS_DECL __declspec(dllexport)
-#elif (defined __SUNPRO_C)
+#elif defined(__SUNPRO_C)
 #define PHYSFS_DECL __global
-#elif ((__GNUC__ >= 3) && (!__EMX__) && (!sun))
+#elif ((__GNUC__ >= 3) && (!defined(__EMX__)) && (!defined(sun)))
 #define PHYSFS_DECL __attribute__((visibility("default")))
 #else
 #define PHYSFS_DECL