1
0
Fork 0

Fix MinGW compilation of TerraSync

This commit is contained in:
James Turner 2010-05-09 12:23:35 +01:00
parent 45fbd8008d
commit 07ad5f34aa

View file

@ -269,7 +269,7 @@ void sync_tree(const char* dir) {
}
}
#ifdef _MSC_VER
#if defined(_MSC_VER) || defined(__MINGW32__)
typedef void (__cdecl * sighandler_t)(int);
#elif defined( __APPLE__ )
typedef sig_t sighandler_t;
@ -278,10 +278,10 @@ typedef sig_t sighandler_t;
bool terminating = false;
sighandler_t prior_signal_handlers[32];
int termination_triggering_signals[] = {
#ifndef _MSC_VER
SIGHUP, SIGINT, SIGQUIT, SIGKILL,
#else
#if defined(_MSC_VER) || defined(__MINGW32__)
SIGINT, SIGILL, SIGFPE, SIGSEGV, SIGTERM, SIGBREAK, SIGABRT,
#else
SIGHUP, SIGINT, SIGQUIT, SIGKILL,
#endif
0}; // zero terminated