Some minor preprocessor nitpicks.
--- a/src/physfs_internal.h Sat Jul 22 20:05:17 2017 -0400
+++ b/src/physfs_internal.h Mon Jul 24 02:36:58 2017 -0400
@@ -35,7 +35,7 @@
#include <malloc.h>
#endif
-#if PHYSFS_PLATFORM_SOLARIS
+#ifdef PHYSFS_PLATFORM_SOLARIS
#include <alloca.h>
#endif
@@ -58,7 +58,7 @@
# define inline __inline
#endif
-#if PHYSFS_PLATFORM_LINUX && !defined(_FILE_OFFSET_BITS)
+#if defined(PHYSFS_PLATFORM_LINUX) && !defined(_FILE_OFFSET_BITS)
#define _FILE_OFFSET_BITS 64
#endif
@@ -405,7 +405,7 @@
* Obviously, this isn't a function. If you need more than one char for this,
* you'll need to pull some old pieces of PhysicsFS out of revision control.
*/
-#if PHYSFS_PLATFORM_WINDOWS || PHYSFS_PLATFORM_OS2
+#if defined(PHYSFS_PLATFORM_WINDOWS) || defined(PHYSFS_PLATFORM_OS2)
#define __PHYSFS_platformDirSeparator '\\'
#else
#define __PHYSFS_platformDirSeparator '/'
--- a/src/physfs_platform_unix.c Sat Jul 22 20:05:17 2017 -0400
+++ b/src/physfs_platform_unix.c Mon Jul 24 02:36:58 2017 -0400
@@ -53,7 +53,7 @@
#include <sys/mnttab.h>
#endif
-#if PHYSFS_PLATFORM_FREEBSD
+#ifdef PHYSFS_PLATFORM_FREEBSD
#include <sys/sysctl.h>
#endif
@@ -254,8 +254,8 @@
const char *envr = NULL;
/* Try to avoid using argv0 unless forced to. Try system-specific stuff. */
-
- #if PHYSFS_PLATFORM_FREEBSD
+
+ #if defined(PHYSFS_PLATFORM_FREEBSD)
{
char fullpath[PATH_MAX];
size_t buflen = sizeof (fullpath);
@@ -263,7 +263,7 @@
if (sysctl(mib, 4, fullpath, &buflen, NULL, 0) != -1)
retval = __PHYSFS_strdup(fullpath);
}
- #elif PHYSFS_PLATFORM_SOLARIS
+ #elif defined(PHYSFS_PLATFORM_SOLARIS)
{
const char *path = getexecname();
if ((path != NULL) && (path[0] == '/')) /* must be absolute path... */