Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lua_cjson.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down Expand Up @@ -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);

Expand All @@ -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);

Expand Down