A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
works better with multiple inclusion
[simgrid.git]
/
include
/
xbt
/
swag.h
diff --git
a/include/xbt/swag.h
b/include/xbt/swag.h
index
64e07f8
..
7e6f1bd
100644
(file)
--- 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. */
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 */