diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-08-16 09:21:21 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2010-08-16 09:21:21 +0000 |
commit | 51f679f514f157c9cbd2a34138d98cc11df3e58c (patch) | |
tree | b4b4c2672dca8444920bf4d93c4e6f5e39f4c0c0 /m4 | |
parent | 86a459ab66b8d6f816a615f657885d2ee642d559 (diff) | |
download | mpfr-51f679f514f157c9cbd2a34138d98cc11df3e58c.tar.gz |
Avoid a compilation failure on OSF/1 (Tru64) 5.1 due to non-C99
conformance though <inttypes.h> is available. In various source
files and m4 files, use the following form only:
#if HAVE_INTTYPES_H
# include <inttypes.h>
#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif
Updated README.dev to mention this form.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7083 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'm4')
-rw-r--r-- | m4/size_max.m4 | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/m4/size_max.m4 b/m4/size_max.m4 index 6cb486892..e44618eec 100644 --- a/m4/size_max.m4 +++ b/m4/size_max.m4 @@ -1,10 +1,11 @@ # size_max.m4 serial 6 -dnl Copyright (C) 2003, 2005-2006 Free Software Foundation, Inc. +dnl Copyright (C) 2003, 2005-2006, 2010 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. +dnl Change by Vincent Lefevre: added <inttypes.h> for consistency with MPFR AC_DEFUN([gl_SIZE_MAX], [ @@ -15,8 +16,11 @@ AC_DEFUN([gl_SIZE_MAX], gl_cv_size_max= AC_EGREP_CPP([Found it], [ #include <limits.h> +#ifdef HAVE_INTTYPES_H +# include <inttypes.h> +#endif #if HAVE_STDINT_H -#include <stdint.h> +# include <stdint.h> #endif #ifdef SIZE_MAX Found it |