summaryrefslogtreecommitdiff
path: root/external/liborcus/liborcus_0.1.0-dllimport.patch
blob: 8940155c9308430cabe08ca266530c2436461000 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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