Fix missing header for macos

This commit is contained in:
Francesco Abbate 2021-04-19 01:18:52 -07:00
parent 2f8c70ac51
commit 94c8f34a81
2 changed files with 5 additions and 1 deletions

View File

@ -47,7 +47,10 @@ if [[ "$OSTYPE" == "msys"* || "$OSTYPE" == "mingw"* ]]; then
fi
rundir=".run"
if [ "$option_portable" == on ]; then
if [[ "$OSTYPE" == "darwin"* ]]; then
bindir="$rundir"
datadir="$rundir"
elif [ "$option_portable" == on ]; then
bindir="$rundir"
datadir="$rundir/data"
else

View File

@ -1,4 +1,5 @@
#import <Foundation/Foundation.h>
#include "lua.h"
void set_macos_bundle_resources(lua_State *L)
{ @autoreleasepool