aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFrancesco Abbate <francesco.bbt@gmail.com>2021-08-19 11:32:18 +0200
committerFrancesco Abbate <francesco.bbt@gmail.com>2021-08-19 11:33:03 +0200
commit717f4eb7825b4016c5a8b3d804e1a27f7a201328 (patch)
treed4edfe013a3d9b89df18893985bb2635c05cb509 /src
parentd9e73a97ea67304a73d8dbbbdc64142812d72e4e (diff)
downloadlite-xl-717f4eb7825b4016c5a8b3d804e1a27f7a201328.tar.gz
lite-xl-717f4eb7825b4016c5a8b3d804e1a27f7a201328.zip
Conditionally disable macos bundle function
Diffstat (limited to 'src')
-rw-r--r--src/bundle_open.m3
1 files changed, 2 insertions, 1 deletions
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 <Foundation/Foundation.h>
#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() {