Mercurial > code
comparison c/asprintf/asprintf.h @ 648:5bd9424a523a
misc: extreme cleanup
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 04 Oct 2018 21:17:55 +0200 |
parents | b327391f6a62 |
children |
comparison
equal
deleted
inserted
replaced
647:0557eea4d373 | 648:5bd9424a523a |
---|---|
24 #ifdef __cplusplus | 24 #ifdef __cplusplus |
25 extern "C" { | 25 extern "C" { |
26 #endif | 26 #endif |
27 | 27 |
28 #ifdef __GNUC__ | 28 #ifdef __GNUC__ |
29 # define ASPRINTF_FMT(i1, i2) __attribute__ ((format (printf, i1, i2))) | 29 # define ASPRINTF_FMT(i1, i2) __attribute__ ((format (printf, i1, i2))) |
30 #else | 30 #else |
31 # define ASPRINTF_FMT(i1, i2) | 31 # define ASPRINTF_FMT(i1, i2) |
32 #endif | 32 #endif |
33 | 33 |
34 int | 34 int |
35 asprintf(char **, const char *, ...) ASPRINTF_FMT(2, 3); | 35 asprintf(char **, const char *, ...) ASPRINTF_FMT(2, 3); |
36 | 36 |