Under MinGW window is now kept open until a key is pressed

This commit is contained in:
sjborley 2005-05-20 13:40:17 +00:00
parent c9eb061bd3
commit 52cab1ce1a
1 changed files with 7 additions and 1 deletions

View File

@ -85,7 +85,13 @@ out:
}
#endif /* X_DISPLAY_MISSING */
exit(EXIT_NORMAL);
#ifdef HAS_WINDOWS
/* Keep window open untill a key is pressed */
printf("Press a key to quit\n");
while( getchar() == EOF) {}
#endif /* HAS_WINDOWS */
return EXIT_NORMAL;
}
void