From 02b6a7f08474167971d57dc650207959ca7be5b1 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sat, 16 Apr 2022 11:02:02 +0300 Subject: [PATCH] fixed windows symbol exports --- src/physfs.h | 2 +- src/physfs_internal.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/physfs.h b/src/physfs.h index d182ff7..77404e4 100644 --- a/src/physfs.h +++ b/src/physfs.h @@ -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 diff --git a/src/physfs_internal.h b/src/physfs_internal.h index c12bda2..4a1ff24 100644 --- a/src/physfs_internal.h +++ b/src/physfs_internal.h @@ -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