aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bundle_open.h8
-rw-r--r--src/bundle_open.m2
-rw-r--r--src/main.c5
3 files changed, 4 insertions, 11 deletions
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 <Foundation/Foundation.h>
-#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 <X11/Xresource.h>
#elif __APPLE__
#include <mach-o/dyld.h>
- #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");