From 29236fc22d8069d83d9a88d8f3426767d8df35e6 Mon Sep 17 00:00:00 2001 From: nhmall Date: Thu, 19 May 2022 19:22:43 -0400 Subject: [PATCH] don't force manual edit of config.h for Lua 5.3.6 and earlier --- src/nhlua.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/nhlua.c b/src/nhlua.c index 0045b4348..6a10b311e 100644 --- a/src/nhlua.c +++ b/src/nhlua.c @@ -5,6 +5,12 @@ #include "hack.h" #include "dlb.h" +#ifndef LUA_VERSION_RELEASE_NUM +#ifdef NHL_SANDBOX +#undef NHL_SANDBOX +#endif +#endif + #ifdef NHL_SANDBOX #include #endif