X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c00d9de77c55596919956e198769dee003776c71..6ce033605df0be7e58fc5644d9b082ca8bc982f9:/src/xbt/ex.c diff --git a/src/xbt/ex.c b/src/xbt/ex.c index a0127e54c2..0a4e65ec40 100644 --- a/src/xbt/ex.c +++ b/src/xbt/ex.c @@ -56,16 +56,7 @@ #include "simgrid/simix.h" /* SIMIX_process_self_get_name() */ -#undef HAVE_BACKTRACE -#if HAVE_EXECINFO_H && HAVE_POPEN && defined(ADDR2LINE) -# define HAVE_BACKTRACE 1 /* Hello linux box */ -#endif - -#if defined(_WIN32) && defined(_M_IX86) && !defined(__GNUC__) -# define HAVE_BACKTRACE 1 /* Hello x86 windows box */ -#endif - -XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_ex, xbt, "Exception mecanism"); +XBT_LOG_NEW_DEFAULT_SUBCATEGORY(xbt_ex, xbt, "Exception mechanism"); XBT_EXPORT_NO_IMPORT(const xbt_running_ctx_t) __xbt_ex_ctx_initializer = XBT_RUNNING_CTX_INITIALIZER; @@ -119,7 +110,7 @@ void xbt_backtrace_display_current(void) xbt_backtrace_display(&e); } -#if HAVE_EXECINFO_H && HAVE_POPEN && defined(ADDR2LINE) +#if HAVE_BACKTRACE && HAVE_EXECINFO_H && HAVE_POPEN && defined(ADDR2LINE) # include "src/xbt/backtrace_linux.c" #else # include "src/xbt/backtrace_dummy.c"