-#if @HAVE_INT8_T@
-# ifndef INT8_MIN
-# define INT8_MIN (-1 << (@BITSIZEOF_INT8_T@ - 1))
-# endif
-#else
-# define INT8_MIN -128
-#endif
-#if @HAVE_INT8_T@
-# ifndef INT8_MAX
-# define INT8_MAX (~ (-1 << (@BITSIZEOF_INT8_T@ - 1)))
-# endif
-#else
-# define INT8_MAX 127
-#endif
-#if @HAVE_UINT8_T@
-# ifndef UINT8_MAX
-# if @BITSIZEOF_UINT8_T@ < @BITSIZEOF_UNSIGNED_INT@
-# define UINT8_MAX (((1 << (@BITSIZEOF_UINT8_T@ - 1)) - 1) * 2 + 1)
-# else
-# define UINT8_MAX (((1U << (@BITSIZEOF_UINT8_T@ - 1)) - 1) * 2 + 1)
-# endif
-# endif
-#else
-# define UINT8_MAX 255
-#endif
-
-#if @HAVE_INT16_T@
-# ifndef INT16_MIN
-# define INT16_MIN (-1 << (@BITSIZEOF_INT16_T@ - 1))
-# endif
-#else
-# define INT16_MIN -32768
-#endif
-#if @HAVE_INT16_T@
-# ifndef INT16_MAX
-# define INT16_MAX (~ (-1 << (@BITSIZEOF_INT16_T@ - 1)))
-# endif
-#else
-# define INT16_MAX 32767
-#endif
-#if @HAVE_UINT16_T@
-# ifndef UINT16_MAX
-# if @BITSIZEOF_UINT16_T@ < @BITSIZEOF_UNSIGNED_INT@
-# define UINT16_MAX (((1 << (@BITSIZEOF_UINT16_T@ - 1)) - 1) * 2 + 1)
-# else
-# define UINT16_MAX (((1U << (@BITSIZEOF_UINT16_T@ - 1)) - 1) * 2 + 1)
-# endif
-# endif
-#else
-# define UINT16_MAX 65535
-#endif
-
-#if @HAVE_INT32_T@
-# ifndef INT32_MIN
-# define INT32_MIN (-1 << (@BITSIZEOF_INT32_T@ - 1))
-# endif
-#else
-# define INT32_MIN (~INT32_MAX)
-#endif
-#if @HAVE_INT32_T@
-# ifndef INT32_MAX
-# define INT32_MAX (~ (-1 << (@BITSIZEOF_INT32_T@ - 1)))
-# endif
-#else
-# define INT32_MAX 2147483647
-#endif
-#if @HAVE_UINT32_T@
-# ifndef UINT32_MAX
-# if @BITSIZEOF_UINT32_T@ < @BITSIZEOF_UNSIGNED_INT@
-# define UINT32_MAX (((1 << (@BITSIZEOF_UINT32_T@ - 1)) - 1) * 2 + 1)
-# else
-# define UINT32_MAX (((1U << (@BITSIZEOF_UINT32_T@ - 1)) - 1) * 2 + 1)
-# endif
-# endif
-#else
-# define UINT32_MAX 4294967295U
-#endif
-
-#if @HAVE_INT64_T@
-# ifndef INT64_MIN
-# if @HAVE_LONG_64BIT@
-# define INT64_MIN (-1L << (@BITSIZEOF_INT64_T@ - 1))
-# elif @HAVE_LONG_LONG_64BIT@
-# define INT64_MIN (-1LL << (@BITSIZEOF_INT64_T@ - 1))
-# elif defined _MSC_VER
-# define INT64_MIN (-1i64 << (@BITSIZEOF_INT64_T@ - 1))
-# endif
-# endif
-#else
-# ifdef _STDINT_H_HAVE_INT64
-# define INT64_MIN (~INT64_MAX)
-# endif
-#endif
-#if @HAVE_INT64_T@
-# ifndef INT64_MAX
-# if @HAVE_LONG_64BIT@
-# define INT64_MAX (~ (-1L << (@BITSIZEOF_INT64_T@ - 1)))
-# elif @HAVE_LONG_LONG_64BIT@
-# define INT64_MAX (~ (-1LL << (@BITSIZEOF_INT64_T@ - 1)))
-# elif defined _MSC_VER
-# define INT64_MAX (~ (-1i64 << (@BITSIZEOF_INT64_T@ - 1)))
-# endif
-# endif
-#else
-# ifdef _STDINT_H_HAVE_INT64
-# if @HAVE_LONG_64BIT@
-# define INT64_MAX 9223372036854775807L
-# elif @HAVE_LONG_LONG_64BIT@
-# define INT64_MAX 9223372036854775807LL
-# elif defined _MSC_VER
-# define INT64_MAX 9223372036854775807i64
-# endif
-# endif
-#endif
-#if @HAVE_UINT64_T@
-# ifndef UINT64_MAX
-# if @HAVE_LONG_64BIT@
-# define UINT64_MAX (((1UL << (@BITSIZEOF_UINT64_T@ - 1)) - 1) * 2 + 1)
-# elif @HAVE_LONG_LONG_64BIT@
-# define UINT64_MAX (((1ULL << (@BITSIZEOF_UINT64_T@ - 1)) - 1) * 2 + 1)
-# elif defined _MSC_VER
-# define UINT64_MAX (((1ui64 << (@BITSIZEOF_UINT64_T@ - 1)) - 1) * 2 + 1)
-# endif
-# endif
-#else
-# ifdef _STDINT_H_HAVE_UINT64
-# if @HAVE_LONG_64BIT@
-# define UINT64_MAX 18446744073709551615UL
-# elif @HAVE_LONG_LONG_64BIT@
-# define UINT64_MAX 18446744073709551615ULL
-# elif defined _MSC_VER
-# define UINT64_MAX 18446744073709551615ui64
-# endif
-# endif
+#undef INT8_MIN
+#undef INT8_MAX
+#undef UINT8_MAX
+#define INT8_MIN (~ INT8_MAX)
+#define INT8_MAX 127
+#define UINT8_MAX 255
+
+#undef INT16_MIN
+#undef INT16_MAX
+#undef UINT16_MAX
+#define INT16_MIN (~ INT16_MAX)
+#define INT16_MAX 32767
+#define UINT16_MAX 65535
+
+#undef INT32_MIN
+#undef INT32_MAX
+#undef UINT32_MAX
+#define INT32_MIN (~ INT32_MAX)
+#define INT32_MAX 2147483647
+#define UINT32_MAX 4294967295U
+
+#undef INT64_MIN
+#undef INT64_MAX
+#ifdef GL_INT64_T
+/* Prefer (- INTMAX_C (1) << 63) over (~ INT64_MAX) because SunPRO C 5.0
+ evaluates the latter incorrectly in preprocessor expressions. */
+# define INT64_MIN (- INTMAX_C (1) << 63)
+# define INT64_MAX INTMAX_C (9223372036854775807)
+#endif
+
+#undef UINT64_MAX
+#ifdef GL_UINT64_T
+# define UINT64_MAX UINTMAX_C (18446744073709551615)