Fix up physfs.h for compilers that are sensitive about preprocessor defines.
This commit is contained in:
parent
a828a91feb
commit
b1c6c7f4a8
|
@ -225,11 +225,11 @@ extern "C" {
|
||||||
|
|
||||||
#if defined(PHYSFS_DECL)
|
#if defined(PHYSFS_DECL)
|
||||||
/* do nothing. */
|
/* do nothing. */
|
||||||
#elif (defined _MSC_VER)
|
#elif defined(_MSC_VER)
|
||||||
#define PHYSFS_DECL __declspec(dllexport)
|
#define PHYSFS_DECL __declspec(dllexport)
|
||||||
#elif (defined __SUNPRO_C)
|
#elif defined(__SUNPRO_C)
|
||||||
#define PHYSFS_DECL __global
|
#define PHYSFS_DECL __global
|
||||||
#elif ((__GNUC__ >= 3) && (!__EMX__) && (!sun))
|
#elif ((__GNUC__ >= 3) && (!defined(__EMX__)) && (!defined(sun)))
|
||||||
#define PHYSFS_DECL __attribute__((visibility("default")))
|
#define PHYSFS_DECL __attribute__((visibility("default")))
|
||||||
#else
|
#else
|
||||||
#define PHYSFS_DECL
|
#define PHYSFS_DECL
|
||||||
|
|
Loading…
Reference in New Issue