Fix fatal error and the version flag option when compiling for windows

This commit is contained in:
onryo
2024-09-26 05:04:55 +02:00
parent 4538bf9e1e
commit f144f8a0b9
2 changed files with 8 additions and 2 deletions

View File

@@ -25,7 +25,13 @@
#include <boost/foreach.hpp>
#include <boost/thread.hpp>
#include <execinfo.h> /* backtrace, backtrace_symbols_fd */
#ifdef _WIN32
#include <windows.h>
#include <dbghelp.h>
#else
#include <execinfo.h>
#endif
#include <unistd.h> /* STDOUT_FILENO */