Simplified #ifdef to not silently fail on certain platforms
authorSybren A. Stüvel <sybren@stuvel.eu>
Sun, 9 Dec 2018 18:24:12 +0000 (19:24 +0100)
committerSybren A. Stüvel <sybren@stuvel.eu>
Sun, 9 Dec 2018 18:24:12 +0000 (19:24 +0100)
source/blender/blenlib/intern/system.c

index c1a7846..82c42c4 100644 (file)
 #include "MEM_guardedalloc.h"
 
 /* for backtrace and gethostname/GetComputerName */
-#if defined(__linux__) || defined(__APPLE__)
-#  include <execinfo.h>
-#  include <unistd.h>
-#elif defined(WIN32)
+#if defined(WIN32)
 #  include <windows.h>
 #  include <dbghelp.h>
+#else
+#  include <execinfo.h>
+#  include <unistd.h>
 #endif
 
 int BLI_cpu_support_sse2(void)