diff options
author | Philipp Janda <siffiejoe@gmx.net> | 2017-08-07 20:22:18 +0200 |
---|---|---|
committer | Philipp Janda <siffiejoe@gmx.net> | 2017-08-07 20:22:18 +0200 |
commit | f608371c71644f5db60a3c83b2c7a44f1eb30eea (patch) | |
tree | c98a08855a0006843772e57a68c1b6dd30a8a419 /README.md | |
parent | 8b2d71e601d1b9695aea084bb5bf7aa7dc0ca230 (diff) | |
download | lua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.tar.gz lua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.tar.bz2 lua-compat-5.3-f608371c71644f5db60a3c83b2c7a44f1eb30eea.zip |
Fix compilation issues with recent LuaJIT 2.1.
Protect macros with `#ifndef`.
Use "compat53" prefix instead of "lua" prefix for the mode where
static versions of the C API functions are created.
Fixes #19.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -72,7 +72,11 @@ your project: | |||
72 | compatibility functions in your code. You have to compile and link | 72 | compatibility functions in your code. You have to compile and link |
73 | `compat-5.3.c` to your project yourself. You can change the way the | 73 | `compat-5.3.c` to your project yourself. You can change the way the |
74 | functions are exported using the `COMPAT53_API` macro (e.g. if you need | 74 | functions are exported using the `COMPAT53_API` macro (e.g. if you need |
75 | some `__declspec` magic). | 75 | some `__declspec` magic). While it is technically possible to use |
76 | the "lua" prefix (and it looks better in the debugger), this is | ||
77 | discouraged because LuaJIT has started to implement its own Lua 5.2+ | ||
78 | C API functions, and with the "lua" prefix you'd violate the | ||
79 | one-definition rule with recent LuaJIT versions. | ||
76 | 80 | ||
77 | ## What's implemented | 81 | ## What's implemented |
78 | 82 | ||