Added option to compile on windows without DLL support.

This commit is contained in:
Alan Mishchenko 2012-06-15 08:39:46 -07:00
parent 98d9d5a61f
commit 082d27ede8
1 changed files with 7 additions and 2 deletions

View File

@ -36,8 +36,13 @@
#endif
#ifdef WIN32
#define ABC_DLLEXPORT __declspec(dllexport)
#define ABC_DLLIMPORT __declspec(dllimport)
#ifdef WIN32_NO_DLL
#define ABC_DLLEXPORT
#define ABC_DLLIMPORT
#else
#define ABC_DLLEXPORT __declspec(dllexport)
#define ABC_DLLIMPORT __declspec(dllimport)
#endif
#else /* defined(WIN32) */
#define ABC_DLLIMPORT
#endif /* defined(WIN32) */