From 717f4eb7825b4016c5a8b3d804e1a27f7a201328 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Thu, 19 Aug 2021 11:32:18 +0200 Subject: [PATCH] Conditionally disable macos bundle function --- src/bundle_open.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bundle_open.m b/src/bundle_open.m index f4f0b94c..08685d08 100644 --- a/src/bundle_open.m +++ b/src/bundle_open.m @@ -1,6 +1,7 @@ #import #include "lua.h" +#ifdef MACOS_USE_BUNDLE void set_macos_bundle_resources(lua_State *L) { @autoreleasepool { @@ -25,7 +26,7 @@ void set_macos_bundle_resources(lua_State *L) lua_pushstring(L, resource_path); lua_setglobal(L, "MACOS_RESOURCES"); }} - +#endif /* Thanks to mathewmariani, taken from his lite-macos github repository. */ void enable_momentum_scroll() {