freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2-demos] master 16dcb4d 1/2: * graph/grtypes.h: Don't give up o


From: Werner Lemberg
Subject: [freetype2-demos] master 16dcb4d 1/2: * graph/grtypes.h: Don't give up on <stdint.h>.
Date: Wed, 29 Sep 2021 23:05:22 -0400 (EDT)

branch: master
commit 16dcb4df34a9b8cdfaaca4dfcf91d157d88113ac
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * graph/grtypes.h: Don't give up on <stdint.h>.
---
 graph/grtypes.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/graph/grtypes.h b/graph/grtypes.h
index b350fcb..f7d5155 100644
--- a/graph/grtypes.h
+++ b/graph/grtypes.h
@@ -19,11 +19,11 @@
 
 #include <stdint.h>
 
-#ifndef UINT32_MAX
-#error  "could not find a 32-bit integer type"
 #endif
 
-#else  /* old trick to determine 32-bit integer type */
+/* If UINT32_MAX is not defined and uint32_t is not available, */
+/* we perform old trick to determine 32-bit integer type       */
+#ifndef UINT32_MAX
 
 #include <limits.h>
 
@@ -57,7 +57,7 @@
 #error  "could not find a 32-bit integer type"
 #endif
 
-#endif  /* old trick to determine 32-bit integer type */
+#endif  /* !UINT32_MAX */
 
 
   typedef unsigned char  byte;



reply via email to

[Prev in Thread] Current Thread [Next in Thread]