From e7f70c05b63356232957a3205c6c605f0839605b Mon Sep 17 00:00:00 2001 From: Benoit Germain Date: Fri, 25 Oct 2013 10:21:43 +0200 Subject: Fix windows build not exporting public 'deep' API --- src/deep.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/deep.h b/src/deep.h index 39f501c..1315157 100644 --- a/src/deep.h +++ b/src/deep.h @@ -9,9 +9,15 @@ #include "lua.h" -typedef void (*luaG_IdFunction)( lua_State *L, char const * const which); +#if (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) +#define LANES_API __declspec(dllexport) +#else +#define LANES_API +#endif // (defined PLATFORM_WIN32) || (defined PLATFORM_POCKETPC) -int luaG_deep_userdata( lua_State *L, luaG_IdFunction idfunc); -void *luaG_todeep( lua_State *L, luaG_IdFunction idfunc, int index); +typedef void (*luaG_IdFunction)( lua_State* L, char const* const which); -#endif // __LANES_DEEP_H__ \ No newline at end of file +extern LANES_API int luaG_deep_userdata( lua_State* L, luaG_IdFunction idfunc); +extern LANES_API void* luaG_todeep( lua_State* L, luaG_IdFunction idfunc, int index); + +#endif // __LANES_DEEP_H__ -- cgit v1.2.3-55-g6feb