Remove redundant conditional
clang defines __GNUC__ and __GNUC_MINOR__ as if it were GCC 4.2.1 and has since clang 2.4, which was before __has_builtin() was added. Closes #1239
This commit is contained in:
parent
bb36862872
commit
e1bb265bf7
1 changed files with 0 additions and 4 deletions
|
|
@ -120,10 +120,6 @@ inline int SWIG_isfinite_func(T x) {
|
|||
# define SWIG_isfinite(X) (SWIG_isfinite_func(X))
|
||||
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
|
||||
# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
||||
# elif defined(__clang__) && defined(__has_builtin)
|
||||
# if __has_builtin(__builtin_isfinite)
|
||||
# define SWIG_isfinite(X) (__builtin_isfinite(X))
|
||||
# endif
|
||||
# elif defined(_MSC_VER)
|
||||
# define SWIG_isfinite(X) (_finite(X))
|
||||
# elif defined(__sun) && defined(__SVR4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue