diff options
author | Soumith Chintala <soumith@fb.com> | 2015-11-13 23:43:33 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@fb.com> | 2015-11-13 23:43:33 +0300 |
commit | 8b446b881defd3dd60423735879b0c2cc6636131 (patch) | |
tree | 63b39ad6754bcc94a51cff01e3ead231c1339bb7 | |
parent | 1db349f813da5dab3d8b3a6805e01482912d248a (diff) |
not defining DLL_EXPORT by defaultdllexp
-rw-r--r-- | init.c | 2 | ||||
-rw-r--r-- | lib/luaT/luaT.h | 2 |
2 files changed, 1 insertions, 3 deletions
@@ -35,7 +35,7 @@ extern void torch_DoubleTensorOperator_init(lua_State *L); extern void torch_TensorMath_init(lua_State *L); -LUA_EXTERNC DLL_EXPORT int luaopen_libtorch(lua_State *L); +LUAT_API int luaopen_libtorch(lua_State *L); int luaopen_libtorch(lua_State *L) { diff --git a/lib/luaT/luaT.h b/lib/luaT/luaT.h index 6260366..be1211f 100644 --- a/lib/luaT/luaT.h +++ b/lib/luaT/luaT.h @@ -27,8 +27,6 @@ extern "C" { # define LUAT_API LUA_EXTERNC DLL_IMPORT # endif #else -# define DLL_EXPORT -# define DLL_IMPORT # define LUAT_API LUA_EXTERNC #endif |