components/lua/3.headers.patch
changeset 97 c27cb2d7067c
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/lua/3.headers.patch	Mon Feb 21 15:51:40 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 <stdarg.h>
+ #include <stddef.h>
+ 
+@@ -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 <stddef.h>
+ #include <stdio.h>
+@@ -169,6 +172,10 @@
+ 
+ #define luaL_reg	luaL_Reg
+ 
++#ifdef __cplusplus
++}
++#endif
++
+ #endif
+ 
+