Commits

Daniel Green committed e69b142

Enables MinGW32 to use ANSI STDIO. Adds to fd0f112bfca8.

  • Participants
  • Parent commits 857c564

Comments (0)

Files changed (2)

     psize = sizeof(buffer);
     for (;;)
     {
-#if _WIN32
+/* MinGW32 supports ANSI with -D__USE_MINGW_ANSI_STDIO */
+#if _WIN32 && !defined( __MINGW32__ )
         va_list va;
         va_copy(va, args);
         count = _vsnprintf(p,psize,format,va);
         if (count != -1)
             break;
         psize *= 2;
-#endif
-#ifndef _WIN32
+#else
         va_list va;
         va_copy(va, args);
 /*
     psize = sizeof(buffer);
     for (;;)
     {
-#if _WIN32
+/* MinGW32 supports ANSI with -D__USE_MINGW_ANSI_STDIO */
+#if _WIN32 && !defined( __MINGW32__ )
         count = _vsnprintf(p,psize,format,args);
         if (count != -1)
             break;
         psize *= 2;
-#endif
-#ifndef _WIN32
+#else
         va_list va;
         va_copy(va, args);
 /*