diff options
-rw-r--r-- | win32/win32.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h index 762ab54068..a7e3e12e5e 100644 --- a/win32/win32.h +++ b/win32/win32.h @@ -55,6 +55,14 @@ #define DllExport __declspec(dllimport) #endif +#ifndef PERL_CORE +# ifdef __cplusplus +# define PERL_CALLCONV extern "C" __declspec(dllimport) +# else +# define PERL_CALLCONV __declspec(dllimport) +# endif +#endif + #define WIN32_LEAN_AND_MEAN #include <windows.h> |