diff --git a/git-compat-util.h b/git-compat-util.h index e283c46c6fa06e..bc3db5085ab715 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -176,7 +176,7 @@ DISABLE_WARNING(-Wsign-compare) /* Approximation of the length of the decimal representation of this type. */ #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) -#ifdef __MINGW64__ +#if defined(__MINGW32__) || defined(__MINGW64__) #define _POSIX_C_SOURCE 1 #elif defined(__sun__) /*