fix win32 porting.

specify missing dll import/export declarations for EAPIs.
This commit is contained in:
ChunEon Park 2015-08-20 11:03:46 +09:00
parent 8b3ef719f0
commit 072bba3dc1
1 changed files with 19 additions and 0 deletions

View File

@ -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 """