aboutsummaryrefslogtreecommitdiff
path: root/src/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compat.h')
-rw-r--r--src/compat.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/compat.h b/src/compat.h
index e44f827..ed56cc6 100644
--- a/src/compat.h
+++ b/src/compat.h
@@ -1,9 +1,14 @@
1#if !defined( __COMPAT_H__) 1#pragma once
2#define __COMPAT_H__ 1
3 2
3#ifdef __cplusplus
4extern "C" {
5#endif // __cplusplus
4#include "lua.h" 6#include "lua.h"
5#include "lualib.h" 7#include "lualib.h"
6#include "lauxlib.h" 8#include "lauxlib.h"
9#ifdef __cplusplus
10}
11#endif // __cplusplus
7 12
8// try to detect if we are building against LuaJIT or MoonJIT 13// try to detect if we are building against LuaJIT or MoonJIT
9#if defined(LUA_JITLIBNAME) 14#if defined(LUA_JITLIBNAME)
@@ -92,5 +97,3 @@ int lua_setiuservalue( lua_State* L, int idx, int n);
92#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d))) 97#define luaL_optint(L,n,d) ((int)luaL_optinteger(L, (n), (d)))
93 98
94#endif // LUA_VERSION_NUM == 504 99#endif // LUA_VERSION_NUM == 504
95
96#endif // __COMPAT_H__