summaryrefslogtreecommitdiff
path: root/tests/tset_sj.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-16 09:21:21 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2010-08-16 09:21:21 +0000
commit51f679f514f157c9cbd2a34138d98cc11df3e58c (patch)
treeb4b4c2672dca8444920bf4d93c4e6f5e39f4c0c0 /tests/tset_sj.c
parent86a459ab66b8d6f816a615f657885d2ee642d559 (diff)
downloadmpfr-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 'tests/tset_sj.c')
-rw-r--r--tests/tset_sj.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/tset_sj.c b/tests/tset_sj.c
index a9c69a6a7..ad4fbb09a 100644
--- a/tests/tset_sj.c
+++ b/tests/tset_sj.c
@@ -37,11 +37,10 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
#endif
#if HAVE_INTTYPES_H
-# include <inttypes.h> /* for intmax_t */
-#else
-# if HAVE_STDINT_H
-# include <stdint.h>
-# endif
+# include <inttypes.h>
+#endif
+#if HAVE_STDINT_H
+# include <stdint.h>
#endif
#include "mpfr-test.h"