Skip to content

Commit

Permalink
Fix up physfs.h for compilers that are sensitive about preprocessor d…
Browse files Browse the repository at this point in the history
…efines.

(transplanted from db8f944df5c56f0244229813203fb5b24e8d9968)
  • Loading branch information
icculus committed Apr 19, 2018
1 parent 7394c07 commit 15dd006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/physfs.h
Expand Up @@ -225,11 +225,11 @@ extern "C" {

#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
Expand Down

0 comments on commit 15dd006

Please sign in to comment.