From c57a24b1d86be7b62b1a415fec228f3aac05ae50 Mon Sep 17 00:00:00 2001 From: alegrand Date: Thu, 16 Dec 2004 00:54:29 +0000 Subject: [PATCH 1/1] works better with multiple inclusion git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@651 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- include/xbt/swag.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/xbt/swag.h b/include/xbt/swag.h index 64e07f80c7..7e6f1bd43b 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -9,6 +9,9 @@ cast and dirty things. So avoid using it unless you really know what you are doing. */ +#ifndef _XBT_SWAG_H +#define _XBT_SWAG_H + #include "xbt/sysdep.h" /* This type should be added to a type that is to be used in such a swag */ @@ -58,3 +61,5 @@ static __inline__ void *xbt_swag_getFirst(xbt_swag_t swag) (obj)=obj_next, \ ((obj)?(obj_next=xbt_swag_getNext((obj),(swag)->offset)): \ (obj_next=NULL)) ) + +#endif /* _XBT_SWAG_H */ -- 2.20.1