From be063bc7a6af8d520948aaf5c9b492c82dd0d1eb Mon Sep 17 00:00:00 2001 From: pixel Date: Tue, 5 Aug 2008 11:27:15 +0000 Subject: Small fix for spurious C++ compilers. --- lib/lua/includes/llimits.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/lua/includes') diff --git a/lib/lua/includes/llimits.h b/lib/lua/includes/llimits.h index 9b48bcd..0ac0607 100644 --- a/lib/lua/includes/llimits.h +++ b/lib/lua/includes/llimits.h @@ -1,5 +1,5 @@ /* -** $Id: llimits.h,v 1.5 2007-07-27 10:05:53 pixel Exp $ +** $Id: llimits.h,v 1.6 2008-08-05 11:27:15 pixel Exp $ ** Limits, basic types, and some other `installation-dependent' definitions ** See Copyright Notice in lua.h */ @@ -105,8 +105,14 @@ typedef lu_int32 Instruction; #define LUA_MINBUFFER 32 #endif +#ifdef __cplusplus +extern "C" { +#endif void do_lua_lock(lua_State *); void do_lua_unlock(lua_State *); +#ifdef __cplusplus +} +#endif #ifndef lua_lock #define lua_lock(L) do_lua_lock(L); -- cgit v1.2.3