summaryrefslogtreecommitdiffstats
path: root/lib/msun
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2004-09-17 05:15:33 +0000
committerdas <das@FreeBSD.org>2004-09-17 05:15:33 +0000
commit2e0425d5d941642c26cb83617bc75d961a1a8f1c (patch)
tree02a855794d536ef04ecea0cf0af20fce7438c8e8 /lib/msun
parent5230412aea7618a1025952f2b502fb7bd28ccd8d (diff)
downloadFreeBSD-src-2e0425d5d941642c26cb83617bc75d961a1a8f1c.zip
FreeBSD-src-2e0425d5d941642c26cb83617bc75d961a1a8f1c.tar.gz
Further refine some #ifs:
- Simplify the logic by using __GNUC_PREREQ__. Suggested by stefanf. - Make math.h compile with old (pre-8.0) versions of icc. Submitted by sf [sic].
Diffstat (limited to 'lib/msun')
-rw-r--r--lib/msun/src/math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h
index b85ef96..bea5f2b 100644
--- a/lib/msun/src/math.h
+++ b/lib/msun/src/math.h
@@ -34,11 +34,11 @@ extern const union __nan_un {
float __uf;
} __nan;
-#if (defined(__GNUC__) && ((__GNUC__ >= 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4)) || defined(__INTEL_COMPILER)
+#if __GNUC_PREREQ__(3, 3) || (defined(__INTEL_COMPILER) && __INTEL_COMPILER >= 800)
#define __MATH_BUILTIN_CONSTANTS
#endif
-#if (defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER))
+#if __GNUC_PREREQ__(3, 0) && !defined(__INTEL_COMPILER)
#define __MATH_BUILTIN_RELOPS
#endif
OpenPOWER on IntegriCloud