components/lua/patches/3.headers.patch
changeset 115 c360825c3a3f
parent 97 c27cb2d7067c
child 990 6bfca1239ccb
child 4226 efcbdc9d6dd8
equal deleted inserted replaced
114:6cc95ec7b1bb 115:c360825c3a3f
       
     1 --- lua-5.1.4/src/lua.h.orig	2009-01-06 02:15:11.179130113 -0800
       
     2 +++ lua-5.1.4/src/lua.h	2009-01-06 02:15:56.570695998 -0800
       
     3 @@ -9,6 +9,10 @@
       
     4  #ifndef lua_h
       
     5  #define lua_h
       
     6  
       
     7 +#ifdef __cplusplus
       
     8 +extern "C" {
       
     9 +#endif
       
    10 +
       
    11  #include <stdarg.h>
       
    12  #include <stddef.h>
       
    13  
       
    14 @@ -384,5 +388,8 @@
       
    15  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
       
    16  ******************************************************************************/
       
    17  
       
    18 +#ifdef __cplusplus
       
    19 +}
       
    20 +#endif
       
    21  
       
    22  #endif
       
    23 --- lua-5.1.4/src/lualib.h.orig	2009-01-06 02:15:19.193417835 -0800
       
    24 +++ lua-5.1.4/src/lualib.h	2009-01-06 02:16:20.502288036 -0800
       
    25 @@ -8,6 +8,10 @@
       
    26  #ifndef lualib_h
       
    27  #define lualib_h
       
    28  
       
    29 +#ifdef __cplusplus
       
    30 +extern "C" {
       
    31 +#endif
       
    32 +
       
    33  #include "lua.h"
       
    34  
       
    35  
       
    36 @@ -49,5 +53,8 @@
       
    37  #define lua_assert(x)	((void)0)
       
    38  #endif
       
    39  
       
    40 +#ifdef __cplusplus
       
    41 +}
       
    42 +#endif
       
    43  
       
    44  #endif
       
    45 --- lua-5.1.4/src/lauxlib.h.orig	2009-01-06 02:15:37.967244620 -0800
       
    46 +++ lua-5.1.4/src/lauxlib.h	2009-01-06 02:16:26.398180986 -0800
       
    47 @@ -8,6 +8,9 @@
       
    48  #ifndef lauxlib_h
       
    49  #define lauxlib_h
       
    50  
       
    51 +#ifdef __cplusplus
       
    52 +extern "C" {
       
    53 +#endif
       
    54  
       
    55  #include <stddef.h>
       
    56  #include <stdio.h>
       
    57 @@ -169,6 +172,10 @@
       
    58  
       
    59  #define luaL_reg	luaL_Reg
       
    60  
       
    61 +#ifdef __cplusplus
       
    62 +}
       
    63 +#endif
       
    64 +
       
    65  #endif
       
    66  
       
    67