X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa222c38f9b796be07ab4351ffc810a61a8fd705..9786ce5dc484c08aed9f0b92cbbf3097d2a6d371:/include/xbt/fifo.h diff --git a/include/xbt/fifo.h b/include/xbt/fifo.h index 9dfd70007e..ec66ad1d5d 100644 --- a/include/xbt/fifo.h +++ b/include/xbt/fifo.h @@ -111,4 +111,16 @@ XBT_PUBLIC(xbt_fifo_item_t) xbt_fifo_getPrevItem(xbt_fifo_item_t i); SG_END_DECL() + +#ifdef __cplusplus +namespace simgrid { +namespace xbt { + inline void destroy(xbt_fifo_t f) + { + xbt_fifo_free(f); + } +} +} +#endif + #endif /* _XBT_FIFO_H */