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
diff options
context:
space:
mode:
authorLeon Bottou <leon@bottou.org>2013-04-11 23:31:09 +0400
committerLeon Bottou <leon@bottou.org>2013-08-11 00:21:46 +0400
commit36e4c9a43b53dac52b15110888fed8771fddd404 (patch)
tree8801a6f2a34ce8db6087ff9dee4f78ac0db773ea
parentb38c39e0cddea4c512a8af6116ca767df8411dd6 (diff)
luaopen_xxx functions need LUA_EXTERNC
-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);