1 diff --git a/public/fpdfview.h b/public/fpdfview.h
2 index 7378d5f..6d37d9e 100644
3 --- a/public/fpdfview.h
4 +++ b/public/fpdfview.h
5 @@ -126,14 +126,20 @@ typedef struct _FS_RECTF_ {
6 // Const Pointer to FS_RECTF structure.
7 typedef const FS_RECTF* FS_LPCRECTF;
9 -#if defined(_WIN32) && defined(FPDFSDK_EXPORTS)
10 -// On Windows system, functions are exported in a DLL
11 +#if defined(PDFIUM_DLLIMPLEMENTATION)
13 #define DLLEXPORT __declspec(dllexport)
14 -#define STDCALL __stdcall
18 +#define DLLEXPORT __attribute__ ((visibility("default")))
22 +#define DLLEXPORT __declspec(dllimport)
24 +#define DLLEXPORT __attribute__ ((visibility("default")))