me.fier.engine/patches/openbsd/generic.patch

55 lines
1.5 KiB
Diff
Raw Normal View History

diff --git a/lua_translate b/lua_translate
index b16ab97..f79b4d0 100755
--- a/lua_translate
+++ b/lua_translate
@@ -23,9 +23,9 @@ functions = toml.loads(open("src/values/functions.toml").read())
ofile = open("src/lua.c","w")
ofile.write('''\
-#include <lua5.3/lua.h>
-#include <lua5.3/lualib.h>
-#include <lua5.3/lauxlib.h>
+#include <lua-5.3/lua.h>
+#include <lua-5.3/lualib.h>
+#include <lua-5.3/lauxlib.h>
lua_State * engine_lua_state;
#include "lua_manual.c"
diff --git a/run b/run
index 03605cc..5d58be7 100755
--- a/run
+++ b/run
@@ -1,5 +1,5 @@
#!/usr/bin/env bash
set -e
./lua_translate
-gcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall
+egcc src/main.c -g -lSDL2 -llua5.3 -o engine -O3 -Werror -Wall -I /usr/local/include
exec ./engine
diff --git a/src/frontend/sdl/main.c b/src/frontend/sdl/main.c
index 74578e3..e644e57 100644
--- a/src/frontend/sdl/main.c
+++ b/src/frontend/sdl/main.c
@@ -131,4 +131,4 @@ void engine_window_destroy(struct ENGINE_WINDOW * window) {
engine_memory_free(window -> texture);
engine_memory_free(window -> fe_window);
engine_memory_free(window);
-}
\ No newline at end of file
+}
diff --git a/src/lua.c b/src/lua.c
index 00317da..eef8e43 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -1,6 +1,6 @@
-#include <lua5.3/lua.h>
-#include <lua5.3/lualib.h>
-#include <lua5.3/lauxlib.h>
+#include <lua-5.3/lua.h>
+#include <lua-5.3/lualib.h>
+#include <lua-5.3/lauxlib.h>
lua_State * engine_lua_state;
#include "lua_manual.c"