X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=src%2Flog.cpp;h=a695b0e72e53264dd58fa78e61c0c036cd1040e5;hb=667281b828c8515e995c0000706157cee180fa08;hp=49b209a4f1c02f82cce61a3d79552cda2d0d9a3e;hpb=e7e4a7ad5c977ae089bab7081e7931fd5e423cc1;p=ipdf%2Fcode.git diff --git a/src/log.cpp b/src/log.cpp index 49b209a..a695b0e 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -10,7 +10,9 @@ #include #include #include +#ifndef __MINGW32__ #include +#endif #ifdef LOG_SYSLOG @@ -145,8 +147,12 @@ void FatalEx(const char * funct, const char * file, int line, ...) */ void Backtrace(int size) { + #ifndef __MINGW32__ void * buffer[100]; int actual_size = backtrace(buffer, size); backtrace_symbols_fd(buffer, actual_size, fileno(stderr)); + #else + Error("Backtrace not supported by compiler"); + #endif }