Ozkan Sezer 3 лет назад
Родитель
Сommit
02b6a7f084
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      src/physfs.h
  2. 1 1
      src/physfs_internal.h

+ 1 - 1
src/physfs.h

@@ -225,7 +225,7 @@ extern "C" {
 
 
 #if defined(PHYSFS_DECL)
 #if defined(PHYSFS_DECL)
 /* do nothing. */
 /* do nothing. */
-#elif defined(_MSC_VER)
+#elif defined(_WIN32)
 #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

+ 1 - 1
src/physfs_internal.h

@@ -69,7 +69,7 @@ extern "C" {
    All file-private symbols need to be marked "static".
    All file-private symbols need to be marked "static".
    Everything shared between PhysicsFS sources needs to be in this
    Everything shared between PhysicsFS sources needs to be in this
    file between the visibility pragma blocks. */
    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
 #define PHYSFS_HAVE_PRAGMA_VISIBILITY 1
 #endif
 #endif