Merge pull request #873

d718960 remove POSIX_C_SOURCE and remove dlfcn.h for static builds (luigi1111)
This commit is contained in:
Riccardo Spagni 2016-07-06 18:12:03 +02:00
commit 628f57b212
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD
2 changed files with 3 additions and 1 deletions

View File

@ -323,7 +323,7 @@ else()
endif()
if(MINGW)
set(WARNINGS "${WARNINGS} -Wno-error=unused-value -Wno-error=unused-but-set-variable")
set(MINGW_FLAG "${MINGW_FLAG} -DWIN32_LEAN_AND_MEAN -D_POSIX_C_SOURCE")
set(MINGW_FLAG "${MINGW_FLAG} -DWIN32_LEAN_AND_MEAN")
set(Boost_THREADAPI win32)
include_directories(SYSTEM src/platform/mingw)
# mingw doesn't support LTO (multiple definition errors at link time)

View File

@ -33,7 +33,9 @@
#include <libunwind.h>
#endif
#include <cxxabi.h>
#ifndef STATICLIB
#include <dlfcn.h>
#endif
// from http://stackoverflow.com/questions/11665829/how-can-i-print-stack-trace-for-caught-exceptions-in-c-code-injection-in-c
#ifdef STATICLIB