------- Comment #5 from pinskia at gcc dot gnu dot org  2010-03-04 19:09 -------
(In reply to comment #4)
> +/* MinGW needs to use the gnu_printf formatter.  */
> +#if __MINGW32__
> +#  define PRINTF_FORMAT gnu_printf
> +#else
> +#  define PRINTF_FORMAT printf
> +#endif

Note I would do:
+/* MinGW needs to use the gnu_printf formatter.  */
+#if __MINGW32__
+#  define PRINTF_FORMAT __gnu_printf__
+#else
+#  define PRINTF_FORMAT __printf__
+#endif

Just in case printf and gnu_printf are macros, I doubt it will be in this case
but I helped someone where printf was a macro.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42950

Reply via email to