Переглянути джерело

Fix crash handler not including stdlib.h

Marcelo Fernandez 8 роки тому
батько
коміт
9a0aa45d5c

+ 1 - 0
platform/osx/crash_handler_osx.mm

@@ -43,6 +43,7 @@
 #include <dlfcn.h>
 #include <dlfcn.h>
 #include <execinfo.h>
 #include <execinfo.h>
 #include <signal.h>
 #include <signal.h>
+#include <stdlib.h>
 
 
 #include <mach-o/dyld.h>
 #include <mach-o/dyld.h>
 #include <mach-o/getsect.h>
 #include <mach-o/getsect.h>

+ 1 - 0
platform/x11/crash_handler_x11.cpp

@@ -39,6 +39,7 @@
 #include <dlfcn.h>
 #include <dlfcn.h>
 #include <execinfo.h>
 #include <execinfo.h>
 #include <signal.h>
 #include <signal.h>
+#include <stdlib.h>
 
 
 static void handle_crash(int sig) {
 static void handle_crash(int sig) {
 	if (OS::get_singleton() == NULL)
 	if (OS::get_singleton() == NULL)