Guard segments definition in USE_MMAP

This commit is contained in:
Ted John 2016-09-17 21:07:17 +01:00
parent 487d6d8f15
commit 20863bce52
1 changed files with 5 additions and 2 deletions

View File

@ -49,8 +49,11 @@
#endif // defined(__unix__) || defined(__MACOSX__)
int gExitCode;
int fdData;
char *segments = (void *)(GOOD_PLACE_FOR_DATA_SEGMENT);
#ifdef USE_MMAP
static int fdData;
static char * segments = (char *)(GOOD_PLACE_FOR_DATA_SEGMENT);
#endif
int gOpenRCT2StartupAction = STARTUP_ACTION_TITLE;
utf8 gOpenRCT2StartupActionPath[512] = { 0 };