Files
loongoffice/external/pdfium/visibility.patch.1
Miklos Vajna b6f9eeb9b5 external: bundle pdfium
Initial use case is to avoid creating a whole Draw document + a poppler
process for each and every PDF image we load in a document.

The MSVC patch is only to support MSVC 2013, as upstream already moved
to MSVC 2015.

Change-Id: I3c9dbac3e3de9f2e874ca4cfec0a9dd8a388b87c
Reviewed-on: https://gerrit.libreoffice.org/34022
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
2017-02-08 12:33:11 +00:00

31 lines
803 B
Groff

diff --git a/public/fpdfview.h b/public/fpdfview.h
index 7378d5f..6d37d9e 100644
--- a/public/fpdfview.h
+++ b/public/fpdfview.h
@@ -126,14 +126,20 @@ typedef struct _FS_RECTF_ {
// Const Pointer to FS_RECTF structure.
typedef const FS_RECTF* FS_LPCRECTF;
-#if defined(_WIN32) && defined(FPDFSDK_EXPORTS)
-// On Windows system, functions are exported in a DLL
+#if defined(PDFIUM_DLLIMPLEMENTATION)
+#ifdef _WIN32
#define DLLEXPORT __declspec(dllexport)
-#define STDCALL __stdcall
#else
-#define DLLEXPORT
-#define STDCALL
+#define DLLEXPORT __attribute__ ((visibility("default")))
+#endif
+#else
+#ifdef _WIN32
+#define DLLEXPORT __declspec(dllimport)
+#else
+#define DLLEXPORT __attribute__ ((visibility("default")))
#endif
+#endif
+#define STDCALL
// Exported Functions
#ifdef __cplusplus