Rename terminate to nh_terminate so VS2015 can compile
This commit is contained in:
@@ -1457,7 +1457,7 @@ int how;
|
||||
raw_print("");
|
||||
raw_print("");
|
||||
}
|
||||
terminate(EXIT_SUCCESS);
|
||||
nh_terminate(EXIT_SUCCESS);
|
||||
}
|
||||
|
||||
void
|
||||
@@ -1532,7 +1532,7 @@ boolean identified, all_containers, reportempty;
|
||||
|
||||
/* should be called with either EXIT_SUCCESS or EXIT_FAILURE */
|
||||
void
|
||||
terminate(status)
|
||||
nh_terminate(status)
|
||||
int status;
|
||||
{
|
||||
program_state.in_moveloop = 0; /* won't be returning to normal play */
|
||||
@@ -1549,7 +1549,7 @@ int status;
|
||||
#ifdef VMS
|
||||
/*
|
||||
* This is liable to draw a warning if compiled with gcc, but it's
|
||||
* more important to flag panic() -> really_done() -> terminate()
|
||||
* more important to flag panic() -> really_done() -> nh_terminate()
|
||||
* as __noreturn__ then to avoid the warning.
|
||||
*/
|
||||
/* don't call exit() if already executing within an exit handler;
|
||||
|
||||
Reference in New Issue
Block a user