aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Eric Janouch <p@janouch.name>2026-04-09 15:28:28 +0200
committerPřemysl Eric Janouch <p@janouch.name>2026-04-09 15:28:28 +0200
commit004b8c981bdf113eac97020e1ded93f9138eceae (patch)
tree0a16fa53efa56b17348d314af8368d97ccd7cb03
parentf4b08fb9511347c038a3a474ab7bdc073e75baff (diff)
downloadpdf-simple-sign-004b8c981bdf113eac97020e1ded93f9138eceae.tar.gz
pdf-simple-sign-004b8c981bdf113eac97020e1ded93f9138eceae.tar.xz
pdf-simple-sign-004b8c981bdf113eac97020e1ded93f9138eceae.zip
lpg: fix Lua 5.5 buildHEADorigin/mastermaster
-rw-r--r--lpg/lpg.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lpg/lpg.cpp b/lpg/lpg.cpp
index 341a104..adc5be3 100644
--- a/lpg/lpg.cpp
+++ b/lpg/lpg.cpp
@@ -1106,7 +1106,11 @@ int main(int argc, char *argv[]) {
return 1;
}
- lua_State *L = lua_newstate(xlua_alloc, NULL);
+#if LUA_VERSION_NUM >= 505
+ lua_State *L = lua_newstate (xlua_alloc, NULL, 0);
+#else
+ lua_State *L = lua_newstate (xlua_alloc, NULL);
+#endif
if (!L) {
cerr << "fatal: Lua initialization failed" << endl;
return 1;