Skip to content

Commit

Permalink
fix: guard gameloop_Win() (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgabaut authored Sep 14, 2023
1 parent 4044f0f commit 70a2682
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/helapordo.c
Original file line number Diff line number Diff line change
Expand Up @@ -11171,6 +11171,7 @@ void gameloop(int argc, char** argv){
exit(0);
}

#ifdef _WIN32
/**
* Takes a integer and a string array (possibly from main).
* @param argc The number of argv values + 1 (0 is program name?).
Expand Down Expand Up @@ -11322,3 +11323,4 @@ void gameloop_Win(int argc, char** argv) {
kls_free(temporary_kls);
kls_free(default_kls);
}
#endif
3 changes: 3 additions & 0 deletions src/helapordo.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ void open_chest(WINDOW* w, Chest * c, Fighter* f, Koliseo* kls, Koliseo_Temp* t_
Path* randomise_path(int seed, Koliseo* kls, const char* path_to_savefile);

void gameloop(int argc, char** argv);

#ifdef _WIN32
void gameloop_Win(int argc, char** argv);
#endif

#endif

0 comments on commit 70a2682

Please sign in to comment.