From: mquinson Date: Thu, 3 Mar 2005 20:40:23 +0000 (+0000) Subject: Use inline portably X-Git-Tag: v3.3~4217 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/9ed9d0c1a58188afa7cc473410b6d6787311d592?hp=ed9b0e1a9b552d612cfbcfc03d730a42f7124b84 Use inline portably git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@1136 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- diff --git a/include/xbt/swag.h b/include/xbt/swag.h index 0a1f252d72..1bf0c86468 100644 --- a/include/xbt/swag.h +++ b/include/xbt/swag.h @@ -13,6 +13,7 @@ #define _XBT_SWAG_H #include "xbt/sysdep.h" +#include "gras_config.h" /* inline */ /* This type should be added to a type that is to be used in such a swag */ /* Whenever a new object with this struct is created, all fields have @@ -77,7 +78,7 @@ void *xbt_swag_extract(xbt_swag_t swag); int xbt_swag_size(xbt_swag_t swag); int xbt_swag_belongs(void *obj, xbt_swag_t swag); -static __inline__ void *xbt_swag_getFirst(xbt_swag_t swag) +static inline void *xbt_swag_getFirst(xbt_swag_t swag) { return (swag->head); }