From 945609a7a65edb913de4858b2baf9663014d3974 Mon Sep 17 00:00:00 2001 From: alegrand Date: Tue, 16 Nov 2004 17:11:35 +0000 Subject: [PATCH] #include "xbt/error.h" /* needed for xbt_die */ Mt. At some places, I was using xbt_new0 without including xbt/error.h and it failed. It seems to me that a .h should be self-contained but I also may have not understood the way you handle your errors. I've added the previous #include at the end of sysdep.h. You probably won't like it but tell me why please. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@516 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/swag.h | 2 ++ include/xbt/sysdep.h | 1 + 2 files changed, 3 insertions(+) diff --git a/include/xbt/swag.h b/include/xbt/swag.h index c23538778a..d4533a0684 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -11,6 +11,8 @@ /* Whenever a new object with this struct is created, all fields have to be set to NULL */ +#include "xbt/sysdep.h" + typedef struct xbt_swag_hookup { void *next; void *prev; diff --git a/include/xbt/sysdep.h b/include/xbt/sysdep.h index f98dbd3870..6c2df2fe14 100644 --- a/include/xbt/sysdep.h +++ b/include/xbt/sysdep.h @@ -84,5 +84,6 @@ double strtod(const char *nptr, char **endptr); int atoi(const char *nptr); END_DECL +#include "xbt/error.h" /* needed for xbt_die */ #endif /* _XBT_SYSDEP_H */ -- 2.20.1