Fix "MinGW: GCC >= 4 does not need SNPRINTF_SIZE_CORR anymore"

The commit message of 3a76fdaf98
explains that GCC >= 4 does not need SNPRINTF_SIZE_CORR, but
the ifdef tested for < 3, instead of < 4.  This is fixed.

Thanks to Johannes Sixt for spotting the bug.
This commit is contained in:
Steffen Prohaska
2009-05-24 08:38:21 +02:00
parent 5fb08d69b1
commit e564daea92

View File

@@ -6,7 +6,7 @@
* number of characters to write without the trailing NUL.
*/
#ifndef SNPRINTF_SIZE_CORR
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 3
#if defined(__MINGW32__) && defined(__GNUC__) && __GNUC__ < 4
#define SNPRINTF_SIZE_CORR 1
#else
#define SNPRINTF_SIZE_CORR 0