X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/220e6263b487e4133541fb9b9c731fb18e780880..4be24d86416854b0f898f8058b88a4d22c8bcb8e:/src/xbt/snprintf.c diff --git a/src/xbt/snprintf.c b/src/xbt/snprintf.c index 22a3aa894c..c5fffcc3b3 100644 --- a/src/xbt/snprintf.c +++ b/src/xbt/snprintf.c @@ -49,11 +49,12 @@ * http://www.ijs.si/software/snprintf/ */ -#include "xbt/sysdep.h" /* xbt_abort() */ -#include "simgrid_config.h" /* Do we need vasprintf? */ +#include "xbt/sysdep.h" /* xbt_abort() */ +#include "src/internal_config.h" /* Do we need vasprintf? */ #include +#include -#if !defined(HAVE_VASPRINTF) +#if !HAVE_VASPRINTF #include /* vsnprintf */ int vasprintf(char **ptr, const char *fmt, va_list ap); int vasprintf(char **ptr, const char *fmt, va_list ap) @@ -84,7 +85,7 @@ char *bvprintf(const char *fmt, va_list ap) if (vasprintf(&res, fmt, ap) < 0) { /* Do not want to use xbt_die() here, as it uses the logging - * infrastucture and may fail to allocate memory too. */ + * infrastructure and may fail to allocate memory too. */ fprintf(stderr, "bprintf: vasprintf failed. Aborting.\n"); xbt_abort(); }