lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Why not

> #ifdef __cplusplus
> #define LUA_API extern C
> #else
> #define LUA_API extern
> #endif

How about:

CFLAGS="-x c++" make

:)

(By the way, to get this to work, I had to put change three lines
in etc/saconfig.c; the version of the readline library on my
system uses char* instead of const char* and gcc gave an error
in c++ mode, rather than the usual warning.)