diff options
Diffstat (limited to 'include/sg_pr2serr.h')
-rw-r--r-- | include/sg_pr2serr.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/include/sg_pr2serr.h b/include/sg_pr2serr.h index 840cec26..c317f5bb 100644 --- a/include/sg_pr2serr.h +++ b/include/sg_pr2serr.h @@ -32,6 +32,16 @@ extern "C" { #if defined(__GNUC__) || defined(__clang__) +#ifdef SG_LIB_MINGW +/* MinGW uses Microsoft's printf */ +int pr2serr(const char * fmt, ...); + +int pr2ws(const char * fmt, ...); + +int sg_scnpr(char * cp, int cp_max_len, const char * fmt, ...); + +#else /* GNU/clang other than MinGW */ + int pr2serr(const char * fmt, ...) __attribute__ ((format (printf, 1, 2))); @@ -40,8 +50,9 @@ int pr2ws(const char * fmt, ...) int sg_scnpr(char * cp, int cp_max_len, const char * fmt, ...) __attribute__ ((format (printf, 3, 4))); +#endif -#else +#else /* not GNU (and not clang) */ int pr2serr(const char * fmt, ...); |