From 072bba3dc10cae6c58264fd48bf1a9cdd1aec431 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 20 Aug 2015 11:03:46 +0900 Subject: [PATCH] fix win32 porting. specify missing dll import/export declarations for EAPIs. --- src/lib/enventor_private.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/lib/enventor_private.h b/src/lib/enventor_private.h index 1b37811..82638a8 100644 --- a/src/lib/enventor_private.h +++ b/src/lib/enventor_private.h @@ -1,6 +1,25 @@ #ifndef __ENVENTOR_PRIVATE_H__ #define __ENVENTOR_PRIVATE_H__ +/*** + * Compatible ABI for Win32 + ***/ +#ifdef _WIN32 +# ifdef EAPI +# undef EAPI +# endif +# ifdef ENVENTOR_WIN32_BUILD_SUPPORT +# define EAPI __declspec(dllexport) +# else +# define EAPI __declspec(dllimport) +# endif +# ifdef EOAPI +# undef EOAPI +# endif +#define EOAPI EAPI +#endif + + #include "common.h" #define QUOT """