X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/fa222c38f9b796be07ab4351ffc810a61a8fd705..1f606358fff6ef994cd58570e7c77ee6259d6a4e:/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 */