diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2015-09-07 17:28:28 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2015-09-07 17:28:28 +0200 |
commit | 59a1fd7d73909540f090a45f18d7ea12198511b2 (patch) | |
tree | 204c2de58bcd5b494db6f6cd5f09e9edcdf338fd /c-api/compat-5.3.c | |
parent | e7b17a6e784df665b7645ae6f8cfd631f49118d2 (diff) | |
download | lua-compat-5.3-59a1fd7d73909540f090a45f18d7ea12198511b2.tar.gz lua-compat-5.3-59a1fd7d73909540f090a45f18d7ea12198511b2.tar.bz2 lua-compat-5.3-59a1fd7d73909540f090a45f18d7ea12198511b2.zip |
Fix linker problems when compiling as C++.
When compiling compat-5.3.c as C++, the Lua symbols may still have
C-linkage. Reference those symbols as `extern "C"` by default and add an
option for normal (C++) linkage.
Diffstat (limited to 'c-api/compat-5.3.c')
-rw-r--r-- | c-api/compat-5.3.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/c-api/compat-5.3.c b/c-api/compat-5.3.c index 8385bba..34b8001 100644 --- a/c-api/compat-5.3.c +++ b/c-api/compat-5.3.c | |||
@@ -3,8 +3,6 @@ | |||
3 | #include <string.h> | 3 | #include <string.h> |
4 | #include <ctype.h> | 4 | #include <ctype.h> |
5 | #include <errno.h> | 5 | #include <errno.h> |
6 | #include <lua.h> | ||
7 | #include <lauxlib.h> | ||
8 | #include "compat-5.3.h" | 6 | #include "compat-5.3.h" |
9 | 7 | ||
10 | /* don't compile it again if it already is included via compat53.h */ | 8 | /* don't compile it again if it already is included via compat53.h */ |