Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge pull request #202 from Takishipp/clear_fct
[simgrid.git] / src / xbt / snprintf.c
index 22a3aa8..c5fffcc 100644 (file)
  *   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 <stdio.h>
+#include <assert.h>
 
-#if !defined(HAVE_VASPRINTF)
+#if !HAVE_VASPRINTF
 #include <stdarg.h> /* 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();
   }