identify OSX

This commit is contained in:
Michael Davidsaver
2011-03-03 16:57:32 -05:00
parent 899c22fbf8
commit 226cc62771

View File

@@ -50,7 +50,7 @@
# define EXCEPT_DEPTH 20
#endif
#if defined(__GLIBC__) /* and possibly some BSDs */
#if defined(__GLIBC__) || (defined(__APPLE__) && defined(__MACH__)) /* and possibly some BSDs */
# include<execinfo.h>
# define EXCEPT_USE_BACKTRACE
#elif defined(_WIN32) && !defined(__MINGW__) && !defined(SKIP_DBGHELP)