Skip to content

Commit

Permalink
Fix linux compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
skejeton committed Jul 16, 2024
1 parent 555f50a commit 7267e4f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,20 @@
#include <sys/stat.h>
#include <sys/types.h>
#define mkdir(p, m) mkdir(p)
#define PATH_MAX 512
#else
#include <sys/stat.h>
#include <unistd.h>
#include <sys/wait.h>
#endif
#include <sokol_app.h>


#ifndef TH_VERSION
#define TH_VERSION ""
#define TH_GITVER ""
#endif

#define PATH_MAX 512

th_global *thg;

extern char *th_em_modulenames[];
Expand Down Expand Up @@ -295,7 +298,7 @@ th_main(int argc, char *argv[])

for (int i = 0; i < th_em_modulenames_count; i++) {
if (strcmp(argv[thg->argOffset + 1], th_em_modulenames[i]) == 0) {
#ifdef _WIN32
#if defined(_WIN32) || defined(__EMSCRIPTEN__)
printf("%s\n", th_em_moduledocs[i]);
#else
int fd[2];
Expand Down

0 comments on commit 7267e4f

Please sign in to comment.