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

github.com/torch/nn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'init.c')
-rw-r--r--init.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.c b/init.c
index 2142a8a..538c572 100644
--- a/init.c
+++ b/init.c
@@ -104,7 +104,9 @@
#include "generic/L1Cost.c"
#include "THGenerateFloatTypes.h"
-DLL_EXPORT int luaopen_libnn(lua_State *L)
+LUA_EXTERNC DLL_EXPORT int luaopen_libnn(lua_State *L);
+
+int luaopen_libnn(lua_State *L)
{
lua_newtable(L);
lua_pushvalue(L, -1);