Skip to content

Commit

Permalink
#include mach-o/dyld.h when on macOS for _NSGetExecutablePath (nesbox…
Browse files Browse the repository at this point in the history
  • Loading branch information
aliceisjustplaying authored May 25, 2024
1 parent 8e3f95a commit 37da717
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/studio/fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
#define SLASH_SYMBOL ('/')
#endif

#if defined (__TIC_MACOSX__)
#include <mach-o/dyld.h>
#endif

static const char* PublicDir = TIC_HOST;

struct tic_fs
Expand Down
4 changes: 0 additions & 4 deletions src/studio/screens/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
#include <unistd.h>
#endif

#if defined (__TIC_MACOSX__)
#include <mach-o/dyld.h>
#endif

static void reset(Start* start)
{
u8* tile = (u8*)start->tic->ram->tiles.data;
Expand Down

0 comments on commit 37da717

Please sign in to comment.