cleanup of exit_main() declaration

svn path=/trunk/; revision=16960
This commit is contained in:
Ulf Lamping 2006-01-05 22:27:25 +00:00
parent eae47c79c1
commit 4f3c493e1d
1 changed files with 6 additions and 5 deletions

View File

@ -84,6 +84,12 @@ console_log_handler(const char *log_domain, GLogLevelFlags log_level,
capture_options global_capture_opts;
capture_options *capture_opts = &global_capture_opts;
#if __GNUC__ >= 2
void exit_main(int err) __attribute__ ((noreturn));
#else
void exit_main(int err);
#endif
static void
@ -210,12 +216,7 @@ BOOL WINAPI ConsoleCtrlHandlerRoutine(DWORD dwCtrlType)
}
#endif
#if __GNUC__ >= 2
void exit_main(int err) __attribute__ ((noreturn));
void exit_main(int err)
#else
void exit_main(int err)
#endif
{
#ifdef _WIN32
/* Shutdown windows sockets */