X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/5ed37babb2fa9097abe82df299c0aa259ed84d5a..2ad536e710c5936ff8e525e4bbb5e7046f292aac:/include/xbt/module.h diff --git a/include/xbt/module.h b/include/xbt/module.h index 43fe15d755..ee9d548160 100644 --- a/include/xbt/module.h +++ b/include/xbt/module.h @@ -8,11 +8,20 @@ #ifndef XBT_MODULE_H #define XBT_MODULE_H -#include /* XBT_PUBLIC */ +// avoid deprecation warning on include (remove entire file with XBT_ATTRIB_DEPRECATED_v337) +#ifndef XBT_MODULE_H_NO_DEPRECATED_WARNING +#warning xbt/module.h is deprecated and will be removed in v3.37. +#endif + +#include +#include SG_BEGIN_DECL -XBT_PUBLIC void xbt_init(int* argc, char** argv); +XBT_ATTRIB_DEPRECATED_v337("Please use simgrid_init(&argc, argv) instead") static void xbt_init(int* argc, char** argv) +{ + simgrid_init(argc, argv); +} SG_END_DECL