Hi Paul,
You noticed some confusion about the _STDC_... macros. I'm committing this
fix.
2006-07-27 Bruno Haible <[EMAIL PROTECTED]>
* m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
test.
* lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
__STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
defined.
*** m4/stdint.m4 26 Jul 2006 12:10:44 -0000 1.19
--- m4/stdint.m4 27 Jul 2006 12:48:59 -0000
***************
*** 71,76 ****
--- 71,77 ----
AC_LANG_PROGRAM([[
#include <stddef.h>
#define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
+ #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
#include ABSOLUTE_STDINT_H
#ifdef INT8_MAX
int8_t a1 = INT8_MAX;
*** lib/stdint_.h 4 Jul 2006 06:37:09 -0000 1.30
--- lib/stdint_.h 27 Jul 2006 12:48:59 -0000
***************
*** 394,401 ****
--- 394,405 ----
#define WINT_MAX \
_STDINT_MAX (@HAVE_SIGNED_WINT_T@, @BITSIZEOF_WINT_T@, [EMAIL PROTECTED]@)
+ #endif /* !defined __cplusplus || defined __STDC_LIMIT_MACROS */
+
/* 7.18.4. Macros for integer constants */
+ #if ! defined __cplusplus || defined __STDC_CONSTANT_MACROS
+
/* 7.18.4.1. Macros for minimum-width integer constants */
/* According to ISO C 99 Technical Corrigendum 1 */