diff -r 6cc95ec7b1bb -r c360825c3a3f components/lua/patches/3.headers.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/components/lua/patches/3.headers.patch Tue Mar 01 14:19:15 2011 -0800 @@ -0,0 +1,67 @@ +--- lua-5.1.4/src/lua.h.orig 2009-01-06 02:15:11.179130113 -0800 ++++ lua-5.1.4/src/lua.h 2009-01-06 02:15:56.570695998 -0800 +@@ -9,6 +9,10 @@ + #ifndef lua_h + #define lua_h + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + #include + #include + +@@ -384,5 +388,8 @@ + * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + ******************************************************************************/ + ++#ifdef __cplusplus ++} ++#endif + + #endif +--- lua-5.1.4/src/lualib.h.orig 2009-01-06 02:15:19.193417835 -0800 ++++ lua-5.1.4/src/lualib.h 2009-01-06 02:16:20.502288036 -0800 +@@ -8,6 +8,10 @@ + #ifndef lualib_h + #define lualib_h + ++#ifdef __cplusplus ++extern "C" { ++#endif ++ + #include "lua.h" + + +@@ -49,5 +53,8 @@ + #define lua_assert(x) ((void)0) + #endif + ++#ifdef __cplusplus ++} ++#endif + + #endif +--- lua-5.1.4/src/lauxlib.h.orig 2009-01-06 02:15:37.967244620 -0800 ++++ lua-5.1.4/src/lauxlib.h 2009-01-06 02:16:26.398180986 -0800 +@@ -8,6 +8,9 @@ + #ifndef lauxlib_h + #define lauxlib_h + ++#ifdef __cplusplus ++extern "C" { ++#endif + + #include + #include +@@ -169,6 +172,10 @@ + + #define luaL_reg luaL_Reg + ++#ifdef __cplusplus ++} ++#endif ++ + #endif + +