summaryrefslogtreecommitdiff
path: root/external/liborcus/liborcus_0.1.0-dllimport.patch
diff options
context:
space:
mode:
Diffstat (limited to 'external/liborcus/liborcus_0.1.0-dllimport.patch')
-rw-r--r--external/liborcus/liborcus_0.1.0-dllimport.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/external/liborcus/liborcus_0.1.0-dllimport.patch b/external/liborcus/liborcus_0.1.0-dllimport.patch
new file mode 100644
index 000000000000..8940155c9308
--- /dev/null
+++ b/external/liborcus/liborcus_0.1.0-dllimport.patch
@@ -0,0 +1,24 @@
+--- include/orcus/env.hpp
++++ include/orcus/env.hpp
+@@ -35,19 +35,13 @@
+ #else
+ #define ORCUS_DLLPUBLIC __declspec(dllexport)
+ #endif
+- #elif defined __ORCUS_STATIC_LIB
++ #else
+ #define ORCUS_DLLPUBLIC
+- #else
+- #ifdef __GNUC__
+- #define ORCUS_DLLPUBLIC __attribute__ ((dllimport))
+- #else
+- #define ORCUS_DLLPUBLIC __declspec(dllimport)
+- #endif
+ #endif
+ #define ORCUS_DLLLOCAL
+ #else
+ #if __GNUC__ >= 4
+- #define ORCUS_DLLPUBLIC __attribute__ ((visibility ("default")))
++ #define ORCUS_DLLPUBLIC __attribute__ ((visibility ("hidden")))
+ #define ORCUS_DLLLOCAL __attribute__ ((visibility ("hidden")))
+ #else
+ #define ORCUS_DLLPUBLIC