summaryrefslogtreecommitdiff
path: root/external/pdfium/visibility.patch.1
blob: 04e89b38ab10721fccedc1730bcb6220b2bd8b1a (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
25
26
27
28
29
30
diff --git a/public/fpdfview.h b/public/fpdfview.h
index 1ff0aeb26..f48036f2b 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -129,14 +129,20 @@ typedef int FPDF_ANNOTATION_SUBTYPE;
 // Dictionary value types.
 typedef int FPDF_OBJECT_TYPE;
 
-#if defined(_WIN32) && defined(FPDFSDK_EXPORTS)
-// On Windows system, functions are exported in a DLL
+#if defined(PDFIUM_DLLIMPLEMENTATION)
+#ifdef _WIN32
 #define FPDF_EXPORT __declspec(dllexport)
-#define FPDF_CALLCONV __stdcall
 #else
-#define FPDF_EXPORT
-#define FPDF_CALLCONV
+#define FPDF_EXPORT __attribute__ ((visibility("default")))
+#endif
+#else
+#ifdef _WIN32
+#define FPDF_EXPORT __declspec(dllimport)
+#else
+#define FPDF_EXPORT __attribute__ ((visibility("default")))
 #endif
+#endif
+#define FPDF_CALLCONV
 
 // Exported Functions
 #ifdef __cplusplus