Windows: Support building roken as a DLL

This commit is contained in:
Asanka C. Herath
2010-11-23 01:58:28 -05:00
parent 1f2dc24b5d
commit 904d779d06

View File

@@ -43,11 +43,18 @@
#ifndef ROKEN_LIB_FUNCTION
#ifdef _WIN32
#define ROKEN_LIB_FUNCTION
#define ROKEN_LIB_CALL __cdecl
# define ROKEN_LIB_CALL __cdecl
# ifdef ROKEN_LIB_DYNAMIC
# define ROKEN_LIB_FUNCTION __declspec(dllimport)
# define ROKEN_LIB_VARIABLE __declspec(dllimport)
# else
# define ROKEN_LIB_FUNCTION
# define ROKEN_LIB_VARIABLE
# endif
#else
#define ROKEN_LIB_FUNCTION
#define ROKEN_LIB_CALL
#define ROKEN_LIB_VARIABLE
#endif
#endif