From d579271194fbd8dd7ff1f0f5dbf225e4a1bfd7f2 Mon Sep 17 00:00:00 2001 From: mquinson Date: Fri, 14 Aug 2009 21:05:23 +0000 Subject: [PATCH] C++ needs love git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@6557 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/ex.h | 4 ++++ include/xbt/sysdep.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/xbt/ex.h b/include/xbt/ex.h index a688f0d89d..af1c0a3955 100644 --- a/include/xbt/ex.h +++ b/include/xbt/ex.h @@ -18,6 +18,8 @@ #include "xbt/misc.h" #include "xbt/virtu.h" +SG_BEGIN_DECL() + /*-*-* Emergency debuging: define this when the exceptions get crazy *-*-*/ #undef __EX_MAYDAY @@ -513,5 +515,7 @@ XBT_PUBLIC(void) xbt_backtrace_current(xbt_ex_t * e); /** @brief Display a previously captured backtrace */ XBT_PUBLIC(void) xbt_backtrace_display(xbt_ex_t * e); +SG_END_DECL() + /** @} */ #endif /* __XBT_EX_H__ */ diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index de2ef82ea3..7ae2aee44c 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -59,7 +59,7 @@ XBT_PUBLIC(char *) bprintf(const char *fmt, ...) _XBT_GNUC_PRINTF(1, 2); return res; } -extern void xbt_backtrace_display_current(void); +XBT_PUBLIC(void) xbt_backtrace_display_current(void); /** @brief Like malloc, but xbt_die() on error @hideinitializer */ -- 2.20.1