diff options
-rw-r--r-- | include/LuaGL.h | 2 | ||||
-rw-r--r-- | lib/LuaGL.cc | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/LuaGL.h b/include/LuaGL.h index d6e22c5..52cf3ef 100644 --- a/include/LuaGL.h +++ b/include/LuaGL.h @@ -28,7 +28,9 @@ #include <Exceptions.h> #include <BLua.h> +extern "C" { #include <lualib.h> +} int luaopen_opengl(Lua *L); diff --git a/lib/LuaGL.cc b/lib/LuaGL.cc index 375be99..668ff57 100644 --- a/lib/LuaGL.cc +++ b/lib/LuaGL.cc @@ -18,7 +18,9 @@ #include <GL/gl.h> #include <GL/glu.h> +extern "C" { #include <lauxlib.h> +} #define BUILDING_LUAGL_DLL |