mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Tweak the conditions under which certain gcc builtins are used:
- Unlike the builtin relational operators, builtin floating-point constants were not available until gcc 3.3, so account for this.[1] - Apparently some versions of the Intel C Compiler fallaciously define __GNUC__ without actually being compatible with the claimed gcc version. Account for this, too.[2] [1] Noticed by: Christian Hiris <4711@chello.at> [2] Submitted by: Alexander Leidinger <Alexander@Leidinger.net>
This commit is contained in:
parent
507e8f1644
commit
205d3300b8
1 changed files with 2 additions and 2 deletions
|
|
@ -34,11 +34,11 @@ extern const union __nan_un {
|
|||
float __uf;
|
||||
} __nan;
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 3) || defined(__INTEL_COMPILER)
|
||||
#if (defined(__GNUC__) && ((__GNUC__ >= 3 && __GNUC_MINOR__ >= 3) || __GNUC__ >= 4)) || defined(__INTEL_COMPILER)
|
||||
#define __MATH_BUILTIN_CONSTANTS
|
||||
#endif
|
||||
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 3)
|
||||
#if (defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER))
|
||||
#define __MATH_BUILTIN_RELOPS
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue