]> git.tdb.fi Git - libs/core.git/blobdiff - source/debug/backtrace.cpp
Use #ifdef _WIN32 rather than WIN32
[libs/core.git] / source / debug / backtrace.cpp
index 1fda155e9665d497f629cb575ea93a33b12a7d3b..f9057dce833d95b9231917bd763a489f7a856fb1 100644 (file)
@@ -1,6 +1,6 @@
 // Must include something to test for glibc
 #include <cstdlib>
-#if !defined(WIN32) && defined(__GLIBC__)
+#if !defined(_WIN32) && defined(__GLIBC__)
 #include <dlfcn.h>
 #include <execinfo.h>
 #endif
@@ -14,7 +14,7 @@ namespace Debug {
 
 Backtrace Backtrace::create()
 {
-#if !defined(WIN32) && defined(__GLIBC__)
+#if !defined(_WIN32) && defined(__GLIBC__)
        void *addresses[50];
        int count = ::backtrace(addresses, 50);