office-gobmx/external/pdfium/visibility.patch.1
Miklos Vajna 0365ca351a pdfium: update to 3196
Change-Id: Ia3bfe918d5dcb52faf3829d59d8a8c3b95e31bbc
Reviewed-on: https://gerrit.libreoffice.org/41722
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
2017-08-30 10:55:14 +02:00

30 lines
824 B
Groff

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