fixed windows symbol exports

This commit is contained in:
Ozkan Sezer 2022-04-16 11:02:02 +03:00 committed by Ryan C. Gordon
parent 045ee2cb7f
commit 02b6a7f084
2 changed files with 2 additions and 2 deletions

View File

@ -225,7 +225,7 @@ extern "C" {
#if defined(PHYSFS_DECL)
/* do nothing. */
#elif defined(_MSC_VER)
#elif defined(_WIN32)
#define PHYSFS_DECL __declspec(dllexport)
#elif defined(__SUNPRO_C)
#define PHYSFS_DECL __global

View File

@ -69,7 +69,7 @@ extern "C" {
All file-private symbols need to be marked "static".
Everything shared between PhysicsFS sources needs to be in this
file between the visibility pragma blocks. */
#if PHYSFS_MINIMUM_GCC_VERSION(4,0) || defined(__clang__)
#if !defined(_WIN32) && (PHYSFS_MINIMUM_GCC_VERSION(4,0) || defined(__clang__))
#define PHYSFS_HAVE_PRAGMA_VISIBILITY 1
#endif