Fix up physfs.h for compilers that are sensitive about preprocessor defines. stable-3.0
authorRyan C. Gordon <icculus@icculus.org>
Thu, 19 Apr 2018 10:06:38 -0400
branchstable-3.0
changeset 1641 db8f944df5c5
parent 1640 baf15f9e8d9a
child 1644 a29fef4a20fd
Fix up physfs.h for compilers that are sensitive about preprocessor defines.
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