diff --git a/lua_cjson.c b/lua_cjson.c index 22f33f1..ea34cce 100644 --- a/lua_cjson.c +++ b/lua_cjson.c @@ -54,12 +54,6 @@ #define CJSON_VERSION "2.1devel" #endif -#ifdef _MSC_VER -#define CJSON_EXPORT __declspec(dllexport) -#else -#define CJSON_EXPORT extern -#endif - /* Workaround for Solaris platforms missing isinf() */ #if !defined(isinf) && (defined(USE_INTERNAL_ISINF) || defined(MISSING_ISINF)) #define isinf(x) (!isnan(x) && isnan((x) - (x))) @@ -1413,7 +1407,7 @@ static int lua_cjson_safe_new(lua_State *l) return 1; } -CJSON_EXPORT int luaopen_cjson(lua_State *l) +LUALIB_API int luaopen_cjson(lua_State *l) { lua_cjson_new(l); @@ -1427,7 +1421,7 @@ CJSON_EXPORT int luaopen_cjson(lua_State *l) return 1; } -CJSON_EXPORT int luaopen_cjson_safe(lua_State *l) +LUALIB_API int luaopen_cjson_safe(lua_State *l) { lua_cjson_safe_new(l);