From: nhmall Date: Thu, 19 May 2022 23:22:43 +0000 (-0400) Subject: don't force manual edit of config.h for Lua 5.3.6 and earlier X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=29236fc22d8069d83d9a88d8f3426767d8df35e6;p=nethack don't force manual edit of config.h for Lua 5.3.6 and earlier --- 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