mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-23 05:37:46 +00:00
remove POSIX_C_SOURCE and remove dlfcn.h for static builds
The former was a faulty "fix" for gmtime_r not existing on Windows. The latter is needed only for dynamic builds, and is not included with msys2, which ends up fine because Windows is only built static at this time.
This commit is contained in:
parent
de91bb75a1
commit
d7189600ae
2 changed files with 3 additions and 1 deletions
|
@ -323,7 +323,7 @@ else()
|
||||||
endif()
|
endif()
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
set(WARNINGS "${WARNINGS} -Wno-error=unused-value -Wno-error=unused-but-set-variable")
|
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)
|
set(Boost_THREADAPI win32)
|
||||||
include_directories(SYSTEM src/platform/mingw)
|
include_directories(SYSTEM src/platform/mingw)
|
||||||
# mingw doesn't support LTO (multiple definition errors at link time)
|
# mingw doesn't support LTO (multiple definition errors at link time)
|
||||||
|
|
|
@ -33,7 +33,9 @@
|
||||||
#include <libunwind.h>
|
#include <libunwind.h>
|
||||||
#endif
|
#endif
|
||||||
#include <cxxabi.h>
|
#include <cxxabi.h>
|
||||||
|
#ifndef STATICLIB
|
||||||
#include <dlfcn.h>
|
#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
|
// from http://stackoverflow.com/questions/11665829/how-can-i-print-stack-trace-for-caught-exceptions-in-c-code-injection-in-c
|
||||||
#ifdef STATICLIB
|
#ifdef STATICLIB
|
||||||
|
|
Loading…
Reference in a new issue