Windows: Support building roken as a DLL
This commit is contained in:
		| @@ -43,11 +43,18 @@ | |||||||
|  |  | ||||||
| #ifndef ROKEN_LIB_FUNCTION | #ifndef ROKEN_LIB_FUNCTION | ||||||
| #ifdef _WIN32 | #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 | #else | ||||||
| #define ROKEN_LIB_FUNCTION | #define ROKEN_LIB_FUNCTION | ||||||
| #define ROKEN_LIB_CALL | #define ROKEN_LIB_CALL | ||||||
|  | #define ROKEN_LIB_VARIABLE | ||||||
| #endif | #endif | ||||||
| #endif | #endif | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Asanka C. Herath
					Asanka C. Herath