mirror of
https://github.com/git/git.git
synced 2026-04-02 13:00:08 +02:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user