Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
works better with multiple inclusion
authoralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Dec 2004 00:54:29 +0000 (00:54 +0000)
committeralegrand <alegrand@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Thu, 16 Dec 2004 00:54:29 +0000 (00:54 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@651 48e7efb5-ca39-0410-a469-dd3cf9ba447f

include/xbt/swag.h

index 64e07f8..7e6f1bd 100644 (file)
@@ -9,6 +9,9 @@
    cast and dirty things. So avoid using it unless you really know
    what you are doing. */
 
    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 */
 #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))     )
        (obj)=obj_next,                                            \
        ((obj)?(obj_next=xbt_swag_getNext((obj),(swag)->offset)):  \
                  (obj_next=NULL))     )
+
+#endif    /* _XBT_SWAG_H */