aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog10
-rw-r--r--bits/mathdef.h6
-rw-r--r--sysdeps/arm/bits/mathdef.h6
-rw-r--r--sysdeps/tile/bits/mathdef.h6
-rw-r--r--sysdeps/x86/bits/mathdef.h6
5 files changed, 22 insertions, 12 deletions
diff --git a/ChangeLog b/ChangeLog
index 1535d46c7b..82d653542f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2014-03-21 Siddhesh Poyarekar <siddhesh@redhat.com>
+
+ * bits/mathdef.h: Use #ifdef instead of #if.
+ * sysdeps/arm/bits/mathdef.h [defined __USE_ISOC99 && defined
+ _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
+ * sysdeps/tile/bits/mathdef.h [defined __USE_ISOC99 && defined
+ _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
+ * sysdeps/x86/bits/mathdef.h [defined __USE_ISOC99 && defined
+ _MATH_H && !defined _MATH_H_MATHDEF]: Likewise.
+
2014-03-20 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
Vidya Ranganathan <vidya@linux.vnet.ibm.com>
diff --git a/bits/mathdef.h b/bits/mathdef.h
index ca1f464bce..f27ecac042 100644
--- a/bits/mathdef.h
+++ b/bits/mathdef.h
@@ -35,15 +35,15 @@ typedef double double_t; /* `double' expressions are evaluated as
/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
builtins are supported. */
-#if __FP_FAST_FMA
+#ifdef __FP_FAST_FMA
# define FP_FAST_FMA 1
#endif
-#if __FP_FAST_FMAF
+#ifdef __FP_FAST_FMAF
# define FP_FAST_FMAF 1
#endif
-#if __FP_FAST_FMAL
+#ifdef __FP_FAST_FMAL
# define FP_FAST_FMAL 1
#endif
diff --git a/sysdeps/arm/bits/mathdef.h b/sysdeps/arm/bits/mathdef.h
index be727e5b8d..f309002abd 100644
--- a/sysdeps/arm/bits/mathdef.h
+++ b/sysdeps/arm/bits/mathdef.h
@@ -34,15 +34,15 @@ typedef double double_t; /* `double' expressions are evaluated as
/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
builtins are supported. */
-# if __FP_FAST_FMA
+# ifdef __FP_FAST_FMA
# define FP_FAST_FMA 1
# endif
-# if __FP_FAST_FMAF
+# ifdef __FP_FAST_FMAF
# define FP_FAST_FMAF 1
# endif
-# if __FP_FAST_FMAL
+# ifdef __FP_FAST_FMAL
# define FP_FAST_FMAL 1
# endif
diff --git a/sysdeps/tile/bits/mathdef.h b/sysdeps/tile/bits/mathdef.h
index d043b4af5f..c26a2e7139 100644
--- a/sysdeps/tile/bits/mathdef.h
+++ b/sysdeps/tile/bits/mathdef.h
@@ -33,15 +33,15 @@ typedef double double_t;
/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
builtins are supported. */
-# if __FP_FAST_FMA
+# ifdef __FP_FAST_FMA
# define FP_FAST_FMA 1
# endif
-# if __FP_FAST_FMAF
+# ifdef __FP_FAST_FMAF
# define FP_FAST_FMAF 1
# endif
-# if __FP_FAST_FMAL
+# ifdef __FP_FAST_FMAL
# define FP_FAST_FMAL 1
# endif
diff --git a/sysdeps/x86/bits/mathdef.h b/sysdeps/x86/bits/mathdef.h
index 07c2d66b03..fd9cf42af0 100644
--- a/sysdeps/x86/bits/mathdef.h
+++ b/sysdeps/x86/bits/mathdef.h
@@ -44,15 +44,15 @@ typedef long double double_t; /* `double' expressions are evaluated as
/* The GCC 4.6 compiler will define __FP_FAST_FMA{,F,L} if the fma{,f,l}
builtins are supported. */
-# if __FP_FAST_FMA
+# ifdef __FP_FAST_FMA
# define FP_FAST_FMA 1
# endif
-# if __FP_FAST_FMAF
+# ifdef __FP_FAST_FMAF
# define FP_FAST_FMAF 1
# endif
-# if __FP_FAST_FMAL
+# ifdef __FP_FAST_FMAL
# define FP_FAST_FMAL 1
# endif