From f1b890314f08c4ff827fc8ae904dec02be654c65 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sat, 28 Apr 2007 18:05:58 +0000 Subject: [PATCH] Avoid false-negative in gl_STDINT_H's C99 conformance test. * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms to C99, include all of gl_STDINT_INCLUDES, not just . --- ChangeLog | 6 ++++++ m4/stdint.m4 | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b4eb7deed..5963fff39 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-28 Jim Meyering + + Avoid false-negative in gl_STDINT_H's C99 conformance test. + * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms + to C99, include all of gl_STDINT_INCLUDES, not just . + 2007-04-27 Eric Blake * doc/headers/assert.texi (assert.h): Document assert module use. diff --git a/m4/stdint.m4 b/m4/stdint.m4 index f440c46b8..659ca8527 100644 --- a/m4/stdint.m4 +++ b/m4/stdint.m4 @@ -66,8 +66,8 @@ AC_DEFUN([gl_STDINT_H], [gl_cv_header_working_stdint_h], [gl_cv_header_working_stdint_h=no AC_COMPILE_IFELSE([ - AC_LANG_PROGRAM([[ -#include + AC_LANG_PROGRAM([gl_STDINT_INCLUDES + [ #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 -- 2.11.0