From: Gabriel Corona Date: Wed, 10 Jun 2015 12:47:56 +0000 (+0200) Subject: [Windows] Proper declaration of [v]asprintf() X-Git-Tag: v3_12~624^2~1 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/d483f591fd771565b580ae73a6fc3c18b8ef4137 [Windows] Proper declaration of [v]asprintf() --- diff --git a/src/portable.h b/src/portable.h index 6da75502b1..c4caaf9a7c 100644 --- a/src/portable.h +++ b/src/portable.h @@ -99,8 +99,8 @@ extern int portable_vsnprintf(char *str, size_t str_m, const char *fmt, /* prototype of GNU functions */ #if (defined(__GNUC__) && !defined(__cplusplus)) -extern int asprintf(char **ptr, const char *fmt, /*args */ ...); -extern int vasprintf(char **ptr, const char *fmt, va_list ap); +XBT_PUBLIC(int) asprintf(char **ptr, const char *fmt, /*args */ ...); +XBT_PUBLIC(int) vasprintf(char **ptr, const char *fmt, va_list ap); #endif extern int asnprintf(char **ptr, size_t str_m, const char *fmt, /*args */