summaryrefslogtreecommitdiff
path: root/src/socket/socket.lua.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/socket/socket.lua.cpp')
-rw-r--r--src/socket/socket.lua.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket/socket.lua.cpp b/src/socket/socket.lua.cpp
index 80b32f7..0032e2c 100644
--- a/src/socket/socket.lua.cpp
+++ b/src/socket/socket.lua.cpp
@@ -1,3 +1,4 @@
+#ifdef LUACONSOLE
// socket.lua from luasocket compiled into a cpp file
extern "C" {
#include "lua.h"
@@ -10,3 +11,4 @@ void luaopen_socket(lua_State *l){
luaL_loadbuffer(l, socket_luac, socket_luac_sz, "@builtin socket.lua");
lua_call(l, 0, 0);
}
+#endif \ No newline at end of file