summaryrefslogtreecommitdiff
path: root/external/pdfium/visibility.patch.1
blob: 9983723b20557813b28b464764b4f95440caf26f (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/public/fpdfview.h b/public/fpdfview.h
index f5212599f..57d6cda13 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -154,31 +154,20 @@ typedef int FPDF_ANNOT_APPEARANCEMODE;
 // Dictionary value types.
 typedef int FPDF_OBJECT_TYPE;
 
-#if defined(COMPONENT_BUILD)
-// FPDF_EXPORT should be consistent with |export| in the pdfium_fuzzer
-// template in testing/fuzzers/BUILD.gn.
-#if defined(WIN32)
-#if defined(FPDF_IMPLEMENTATION)
+#if defined(PDFIUM_DLLIMPLEMENTATION)
+#ifdef _WIN32
 #define FPDF_EXPORT __declspec(dllexport)
 #else
-#define FPDF_EXPORT __declspec(dllimport)
-#endif  // defined(FPDF_IMPLEMENTATION)
-#else
-#if defined(FPDF_IMPLEMENTATION)
-#define FPDF_EXPORT __attribute__((visibility("default")))
-#else
-#define FPDF_EXPORT
-#endif  // defined(FPDF_IMPLEMENTATION)
-#endif  // defined(WIN32)
+#define FPDF_EXPORT __attribute__ ((visibility("default")))
+#endif
 #else
-#define FPDF_EXPORT
-#endif  // defined(COMPONENT_BUILD)
-
-#if defined(WIN32) && defined(FPDFSDK_EXPORTS)
-#define FPDF_CALLCONV __stdcall
+#ifdef _WIN32
+#define FPDF_EXPORT __declspec(dllimport)
 #else
-#define FPDF_CALLCONV
+#define FPDF_EXPORT __attribute__ ((visibility("default")))
 #endif
+#endif
+#define FPDF_CALLCONV
 
 // Exported Functions
 #ifdef __cplusplus