summaryrefslogtreecommitdiff
path: root/src/ieee_floats.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-24 14:41:52 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2016-05-24 14:41:52 +0000
commit8ae75654ea2c38fc182d092ed764b2a196aca8da (patch)
treea0ab2b1d44f5da5ad35bfc140d8d2d465c625bb7 /src/ieee_floats.h
parent53e5aa1f5ee1b1245bf815d02ad1e3faaf0005ca (diff)
downloadmpfr-8ae75654ea2c38fc182d092ed764b2a196aca8da.tar.gz
Avoid some warnings with "gcc -Wundef".
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@10352 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/ieee_floats.h')
-rw-r--r--src/ieee_floats.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ieee_floats.h b/src/ieee_floats.h
index 101164ec3..42cf6b06c 100644
--- a/src/ieee_floats.h
+++ b/src/ieee_floats.h
@@ -54,13 +54,14 @@ union dbl_bytes {
must be in the compiler used to build the user-end application because
this is where the sNaN will be obtained). */
-#if HAVE_DOUBLE_IEEE_LITTLE_ENDIAN
+#ifdef HAVE_DOUBLE_IEEE_LITTLE_ENDIAN
static const union dbl_bytes dbl_infp =
{ { 0, 0, 0, 0, 0, 0, 0xF0, 0x7F } };
static const union dbl_bytes dbl_infm =
{ { 0, 0, 0, 0, 0, 0, 0xF0, 0xFF } };
#endif
-#if HAVE_DOUBLE_IEEE_BIG_ENDIAN
+
+#ifdef HAVE_DOUBLE_IEEE_BIG_ENDIAN
static const union dbl_bytes dbl_infp =
{ { 0x7F, 0xF0, 0, 0, 0, 0, 0, 0 } };
static const union dbl_bytes dbl_infm =