From f8cefb989cacb18a31b47e9881ce28b41b73371a Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 1 Jul 2014 18:53:55 +0200 Subject: [PATCH] Try to use stdint.h with gcc <= 4.4 There's no way to tell whether the architecture has its stdint.h, as __UINT_FAST64_TYPE__ built in define didn't exist yet. Redefining the types would break the build, and chances are we're not on some exotic architecture where stdint would be missing, so let's assume it exists. --- src/pstdint.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pstdint.h b/src/pstdint.h index 00fc1fc..41aa44b 100644 --- a/src/pstdint.h +++ b/src/pstdint.h @@ -191,7 +191,7 @@ * do nothing else. On the Mac OS X version of gcc this is _STDINT_H_. */ -#if ((defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined (__WATCOMC__) && (defined (_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_) || defined (__UINT_FAST64_TYPE__)) )) && !defined (_PSTDINT_H_INCLUDED) +#if ((defined(__STDC__) && __STDC__ && __STDC_VERSION__ >= 199901L) || (defined (__WATCOMC__) && (defined (_STDINT_H_INCLUDED) || __WATCOMC__ >= 1250)) || (defined(__GNUC__) && (defined(_STDINT_H) || defined(_STDINT_H_) || defined (__UINT_FAST64_TYPE__) || __GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ <= 4)) )) && !defined (_PSTDINT_H_INCLUDED) #include #define _PSTDINT_H_INCLUDED # ifndef PRINTF_INT64_MODIFIER