New printf/scanf attribute helper macros git-svn-id: svn+ssh://svn.code.sf.net/p/mingw-w64/code/trunk@5538 4407c894-4637-0410-b4f5-ada5f102cad1
diff --git a/mingw-w64-headers/crt/ChangeLog b/mingw-w64-headers/crt/ChangeLog index 99f00f6..3ebc9fe 100644 --- a/mingw-w64-headers/crt/ChangeLog +++ b/mingw-w64-headers/crt/ChangeLog
@@ -1,5 +1,11 @@ 2013-01-12 Jonathan Yong <jon_y@users.sourceforge.net> + * _mingw_mac.h: New __MINGW_MS_PRINTF helper macro. + Likewise for __MINGW_MS_SCANF, __MINGW_GNU_PRINTF and + __MINGW_GNU_SCANF. + +2013-01-12 Jonathan Yong <jon_y@users.sourceforge.net> + * stdlib.h: Define __USE_MINGW_STRTOX if __USE_MINGW_ANSI_STDIO in use. (strtod): Alias to __mingw_strtod if __USE_MINGW_STRTOX. (strtof): Likewise to __mingw_strtof.
diff --git a/mingw-w64-headers/crt/_mingw_mac.h b/mingw-w64-headers/crt/_mingw_mac.h index 0d86c76..447916f 100644 --- a/mingw-w64-headers/crt/_mingw_mac.h +++ b/mingw-w64-headers/crt/_mingw_mac.h
@@ -229,6 +229,11 @@ # define __MINGW_ATTRIB_DEPRECATED_SEC_WARN #endif +#define __MINGW_MS_PRINTF(__format,__args) __attribute__((__format__(ms_printf, __format,__args))) +#define __MINGW_MS_SCANF(__format,__args) __attribute__((__format__(ms_scanf, __format,__args))) +#define __MINGW_GNU_PRINTF(__format,__args) __attribute__((__format__(gnu_printf,__format,__args))) +#define __MINGW_GNU_SCANF(__format,__args) __attribute__((__format__(gnu_scanf, __format,__args))) + #undef __mingw_ovr #ifdef __cplusplus #define __mingw_ovr inline __cdecl