mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 09:17:55 +08:00
14 lines
372 B
Diff
14 lines
372 B
Diff
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")))
|