Add support for compiling under MinGW + fix Windows compiling in general

This commit is contained in:
wuggy 2026-04-17 15:05:11 -07:00
commit a5cf494890
56 changed files with 243 additions and 76 deletions

View file

@ -519,14 +519,16 @@ nsTimerImpl::Fire(int32_t aGeneration)
this, (TimeStamp::Now() - now).ToMilliseconds()));
}
#if defined(HAVE_DLADDR) && defined(HAVE___CXA_DEMANGLE)
#if defined(HAVE_DLADDR) && defined(HAVE___CXA_DEMANGLE) && !defined(XP_WIN)
#define USE_DLADDR 1
#endif
#ifdef USE_DLADDR
#if !defined(XP_WIN)
#include <cxxabi.h>
#include <dlfcn.h>
#endif
#endif
// See the big comment above GetTimerFiringsLog() to understand this code.
void