bug-gnulib
[Top][All Lists]
Advanced

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

stdint tweak


From: Bruno Haible
Subject: stdint tweak
Date: Thu, 27 Jul 2006 14:51:45 +0200
User-agent: KMail/1.9.1

Hi Paul,

You noticed some confusion about the _STDC_... macros. I'm committing this
fix.

2006-07-27  Bruno Haible  <address@hidden>

        * 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@, address@hidden@)
  
+ #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 */
  




reply via email to

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