marrub
/
LoveToken
Archived
1
0
Fork 0

added some more definitions for LT_EXPORT

master
Marrub 2015-06-06 11:05:13 -04:00
parent 5969582f3d
commit 4a5e2b0350
1 changed files with 9 additions and 2 deletions

View File

@ -40,8 +40,15 @@ THE SOFTWARE.
#define TOKEN_STR_BLOCK_LENGTH 512
// [marrub] When using in FFI, remove this from the declarations.
// Also make sure to redefine this for cross-platform.
#define LT_EXPORT __declspec(dllexport)
// Also make sure to redefine this if your platform is not supported.
// (OSX shouldn't need this at all)
#if defined(_MSC_VER)
#define LT_EXPORT __declspec(dllexport)
#elseif defined(_GCC)
#define LT_EXPORT __attribute__((visibility("default")))
#else
#define LT_EXPORT
#endif
enum
{