1
0
Fork 0

silence MSVC8

This commit is contained in:
mfranz 2007-05-13 08:43:40 +00:00
parent 76e76bb95d
commit aa386b577d

View file

@ -144,7 +144,7 @@ void flush_fpe(void)
} }
#endif #endif
static void terminate() { static void fg_terminate() {
cerr << endl << cerr << endl <<
"Uncaught Exception: you should see a meaningful error message\n" "Uncaught Exception: you should see a meaningful error message\n"
"here, but your GLUT (or SDL) library was apparently compiled\n" "here, but your GLUT (or SDL) library was apparently compiled\n"
@ -215,7 +215,7 @@ int main ( int argc, char **argv ) {
// FIXME: add other, more specific // FIXME: add other, more specific
// exceptions. // exceptions.
try { try {
std::set_terminate(terminate); std::set_terminate(fg_terminate);
atexit(fgExitCleanup); atexit(fgExitCleanup);
fgMainInit(argc, argv); fgMainInit(argc, argv);
} catch (const sg_throwable &t) { } catch (const sg_throwable &t) {