|
From: <yu...@us...> - 2003-11-21 20:32:04
|
Update of /cvsroot/timewarp/include
In directory sc8-pr-cvs1:/tmp/cvs-serv6476/include
Modified Files:
lauxlib.h lua.h lualib.h
Log Message:
Compilation problem
Index: lauxlib.h
===================================================================
RCS file: /cvsroot/timewarp/include/lauxlib.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lauxlib.h 19 Nov 2003 08:20:04 -0000 1.1
--- lauxlib.h 21 Nov 2003 20:32:00 -0000 1.2
***************
*** 9,12 ****
--- 9,15 ----
#define lauxlib_h
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
#include <stddef.h>
***************
*** 140,143 ****
--- 143,149 ----
#define luaL_opt_long luaL_optlong
+ #ifdef __cplusplus
+ }
+ #endif
#endif
Index: lua.h
===================================================================
RCS file: /cvsroot/timewarp/include/lua.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lua.h 19 Nov 2003 08:20:05 -0000 1.1
--- lua.h 21 Nov 2003 20:32:01 -0000 1.2
***************
*** 11,14 ****
--- 11,18 ----
#define lua_h
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
#include <stdarg.h>
#include <stddef.h>
***************
*** 387,390 ****
--- 391,398 ----
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
******************************************************************************/
+
+ #ifdef __cplusplus
+ }
+ #endif
Index: lualib.h
===================================================================
RCS file: /cvsroot/timewarp/include/lualib.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** lualib.h 19 Nov 2003 08:20:05 -0000 1.1
--- lualib.h 21 Nov 2003 20:32:01 -0000 1.2
***************
*** 11,14 ****
--- 11,18 ----
#include "lua.h"
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+
#ifndef LUALIB_API
***************
*** 53,56 ****
--- 57,64 ----
#define lua_mathlibopen luaopen_math
#define lua_dblibopen luaopen_debug
+
+ #ifdef __cplusplus
+ }
+ #endif
#endif
|