Notice when int8_t and friends are defined and don't redefine them.
authordrepper <drepper>
Sat, 21 Jun 1997 01:12:41 +0000 (01:12 +0000)
committerdrepper <drepper>
Sat, 21 Jun 1997 01:12:41 +0000 (01:12 +0000)
sysdeps/wordsize-32/inttypes.h
sysdeps/wordsize-64/inttypes.h

index f3029cc..a2648bf 100644 (file)
 /* Exact integral types.  */
 
 /* Signed.  */
+
+/* There is some amount of overlap with <sys/types.h> as known by inet code */
+#ifndef __int8_t_defined
+#define __int8_t_defined
 typedef signed char    int8_t;
 typedef short int     int16_t;
 typedef int           int32_t;
 typedef long long int int64_t;
+#endif
 
 /* Unsigned.  */
 typedef unsigned char           uint8_t;
index b94aff0..07680d0 100644 (file)
 /* Exact integral types.  */
 
 /* Signed.  */
+
+/* There is some amount of overlap with <sys/types.h> as known by inet code */
+#ifndef __int8_t_defined
+#define __int8_t_defined
 typedef signed char int8_t;
 typedef short int  int16_t;
 typedef int        int32_t;
 typedef long int   int64_t;
+#endif
 
 /* Unsigned.  */
 typedef unsigned char       uint8_t;