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

github.com/torch/qtlua.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'packages/qtide/qtide.h')
-rw-r--r--packages/qtide/qtide.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/qtide/qtide.h b/packages/qtide/qtide.h
index 5300ddf..5d5efe2 100644
--- a/packages/qtide/qtide.h
+++ b/packages/qtide/qtide.h
@@ -3,8 +3,10 @@
#ifndef QTIDE_H
#define QTIDE_H
+extern "C" {
#include "lua.h"
#include "lauxlib.h"
+}
#include "qtluaengine.h"
#include "qtluautils.h"
@@ -19,6 +21,8 @@
# define QTIDE_API /**/
#endif
+#define LUA_EXTERNC extern "C"
+
LUA_EXTERNC QTIDE_API int luaopen_libqtide(lua_State *L);
#endif