vcpkg/ports/physfs/export-symbols-in-shared-build-only.patch

14 lines
372 B
Diff
Raw Normal View History

diff --git a/physfs.h b/physfs.h
index 3c252c6..4319981 100644
--- a/physfs.h
+++ b/physfs.h
@@ -221,7 +221,7 @@ extern "C" {
#endif
#ifndef DOXYGEN_SHOULD_IGNORE_THIS
-#if (defined _MSC_VER)
+#if (defined _MSC_VER && defined (physfs_EXPORTS))
#define __EXPORT__ __declspec(dllexport)
#elif (__GNUC__ >= 3)
#define __EXPORT__ __attribute__((visibility("default")))