Add __declspec;

This commit is contained in:
bjorn 2018-09-27 21:29:28 -07:00
parent 2398e592a9
commit cd5df6b148
1 changed files with 17 additions and 11 deletions

View File

@ -1,17 +1,23 @@
#include "luax.h"
#ifdef _WIN32
#define LOVR_API __declspec(dllexport)
#else
#define LOVR_API
#endif
// Module loaders
int luaopen_lovr(lua_State* L);
int luaopen_lovr_audio(lua_State* L);
int luaopen_lovr_data(lua_State* L);
int luaopen_lovr_event(lua_State* L);
int luaopen_lovr_filesystem(lua_State* L);
int luaopen_lovr_graphics(lua_State* L);
int luaopen_lovr_headset(lua_State* L);
int luaopen_lovr_math(lua_State* L);
int luaopen_lovr_physics(lua_State* L);
int luaopen_lovr_thread(lua_State* L);
int luaopen_lovr_timer(lua_State* L);
LOVR_API int luaopen_lovr(lua_State* L);
LOVR_API int luaopen_lovr_audio(lua_State* L);
LOVR_API int luaopen_lovr_data(lua_State* L);
LOVR_API int luaopen_lovr_event(lua_State* L);
LOVR_API int luaopen_lovr_filesystem(lua_State* L);
LOVR_API int luaopen_lovr_graphics(lua_State* L);
LOVR_API int luaopen_lovr_headset(lua_State* L);
LOVR_API int luaopen_lovr_math(lua_State* L);
LOVR_API int luaopen_lovr_physics(lua_State* L);
LOVR_API int luaopen_lovr_thread(lua_State* L);
LOVR_API int luaopen_lovr_timer(lua_State* L);
// Objects
extern const luaL_Reg lovrAnimator[];