Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/torch/torch7.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoumith Chintala <soumith@fb.com>2015-11-13 23:43:33 +0300
committerSoumith Chintala <soumith@fb.com>2015-11-13 23:43:33 +0300
commit8b446b881defd3dd60423735879b0c2cc6636131 (patch)
tree63b39ad6754bcc94a51cff01e3ead231c1339bb7
parent1db349f813da5dab3d8b3a6805e01482912d248a (diff)
not defining DLL_EXPORT by defaultdllexp
-rw-r--r--init.c2
-rw-r--r--lib/luaT/luaT.h2
2 files changed, 1 insertions, 3 deletions
diff --git a/init.c b/init.c
index 08eedba..3917ee3 100644
--- a/init.c
+++ b/init.c
@@ -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