From 2f8c70ac517dc215db20a8b879de18354ecd67a1 Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Mon, 19 Apr 2021 09:52:00 +0200 Subject: [PATCH] Remove bundle_open.h file --- src/bundle_open.h | 8 -------- src/bundle_open.m | 2 -- src/main.c | 5 ++++- 3 files changed, 4 insertions(+), 11 deletions(-) delete mode 100644 src/bundle_open.h diff --git a/src/bundle_open.h b/src/bundle_open.h deleted file mode 100644 index 48a478c2..00000000 --- a/src/bundle_open.h +++ /dev/null @@ -1,8 +0,0 @@ -#ifndef BUNDLE_OPEN_H -#define BUNDLE_OPEN_H - -#include "lua.h" - -void set_macos_bundle_resources(lua_State *L); - -#endif diff --git a/src/bundle_open.m b/src/bundle_open.m index 73ff9048..e1cfa1cb 100644 --- a/src/bundle_open.m +++ b/src/bundle_open.m @@ -1,7 +1,5 @@ #import -#include "bundle_open.h" - void set_macos_bundle_resources(lua_State *L) { @autoreleasepool { diff --git a/src/main.c b/src/main.c index 85b10deb..762781d8 100644 --- a/src/main.c +++ b/src/main.c @@ -13,7 +13,6 @@ #include #elif __APPLE__ #include - #include "bundle_open.h" #endif @@ -96,6 +95,10 @@ static void init_window_icon(void) { #define LITE_NONPATHSEP_PATTERN "[^/]+" #endif +#ifdef __APPLE__ +void set_macos_bundle_resources(lua_State *L); +#endif + int main(int argc, char **argv) { #ifdef _WIN32 HINSTANCE lib = LoadLibrary("user32.dll");