git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of git.ucc.asn.au:ipdf/code
[ipdf/code.git]
/
src
/
log.cpp
diff --git
a/src/log.cpp
b/src/log.cpp
index
49b209a
..
a695b0e
100644
(file)
--- a/
src/log.cpp
+++ b/
src/log.cpp
@@
-10,7
+10,9
@@
#include <cstdio>
#include <unistd.h>
#include <stdarg.h>
#include <cstdio>
#include <unistd.h>
#include <stdarg.h>
+#ifndef __MINGW32__
#include <execinfo.h>
#include <execinfo.h>
+#endif
#ifdef LOG_SYSLOG
#ifdef LOG_SYSLOG
@@
-145,8
+147,12
@@
void FatalEx(const char * funct, const char * file, int line, ...)
*/
void Backtrace(int size)
{
*/
void Backtrace(int size)
{
+ #ifndef __MINGW32__
void * buffer[100];
int actual_size = backtrace(buffer, size);
backtrace_symbols_fd(buffer, actual_size, fileno(stderr));
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
}
}
UCC
git Repository :: git.ucc.asn.au