Mercurial > hg > octave-kai > gnulib-hg
changeset 9139:c68fd65692fd
Avoid gcc warning: "__STDC_LIMIT_MACROS_TRIGGER" redefined
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Tue, 07 Aug 2007 22:26:23 +0000 (2007-08-07) |
parents | 9321c69be4bc |
children | ffc5b7a10350 |
files | ChangeLog m4/inttypes.m4 |
diffstat | 2 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-08-07 Bruno Haible <bruno@clisp.org> + + * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS + instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition + warning from gcc. + Reported by Eric Blake. + 2007-08-07 Simon Josefsson <simon@josefsson.org> * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
--- a/m4/inttypes.m4 +++ b/m4/inttypes.m4 @@ -1,4 +1,4 @@ -# inttypes.m4 serial 10 +# inttypes.m4 serial 11 dnl Copyright (C) 2006-2007 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, @@ -150,12 +150,12 @@ dnl Also be careful to define __STDC_LIMIT_MACROS only when gnulib's dnl <inttypes.h> is going to be created, and to avoid redefinition warnings dnl if the __STDC_LIMIT_MACROS is already defined through the CPPFLAGS. - AC_DEFINE([__STDC_LIMIT_MACROS_TRIGGER], 1, + AC_DEFINE([GL_TRIGGER_STDC_LIMIT_MACROS], 1, [Define to make the limit macros in <stdint.h> visible.]) AH_VERBATIM([__STDC_LIMIT_MACROS_ZZZ], [/* Ensure that <stdint.h> defines the limit macros, since gnulib's <inttypes.h> relies on them. */ -#if defined __cplusplus && !defined __STDC_LIMIT_MACROS && __STDC_LIMIT_MACROS_TRIGGER +#if defined __cplusplus && !defined __STDC_LIMIT_MACROS && GL_TRIGGER_STDC_LIMIT_MACROS # define __STDC_LIMIT_MACROS 1 #endif ])