aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/sys/unix
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2014-12-01 15:43:35 +0100
committerLukas Larsson <[email protected]>2014-12-02 10:23:37 +0100
commit5266be37c198b7b5ba3df9c1fa530bb0b11aa7d9 (patch)
tree507f7b207f4419707d017fdead51cebffbd24560 /erts/emulator/sys/unix
parente3f4cd83939f28e17addac889208985196d22f22 (diff)
downloadotp-5266be37c198b7b5ba3df9c1fa530bb0b11aa7d9.tar.gz
otp-5266be37c198b7b5ba3df9c1fa530bb0b11aa7d9.tar.bz2
otp-5266be37c198b7b5ba3df9c1fa530bb0b11aa7d9.zip
erts: Fix finite warning for clang
clang aka llvm claims to be __GNUC__ and thus we have to explicitly check that it is not used.
Diffstat (limited to 'erts/emulator/sys/unix')
-rw-r--r--erts/emulator/sys/unix/erl_unix_sys.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/sys/unix/erl_unix_sys.h b/erts/emulator/sys/unix/erl_unix_sys.h
index f7a6298d5b..26ed2fb558 100644
--- a/erts/emulator/sys/unix/erl_unix_sys.h
+++ b/erts/emulator/sys/unix/erl_unix_sys.h
@@ -229,7 +229,7 @@ extern void sys_stop_cat(void);
#ifdef USE_ISINF_ISNAN /* simulate finite() */
# define isfinite(f) (!isinf(f) && !isnan(f))
# define HAVE_ISFINITE
-#elif defined(__GNUC__) && defined(HAVE_FINITE)
+#elif (defined(__GNUC__) && !defined(__llvm__)) && defined(HAVE_FINITE)
/* We use finite in gcc as it emits assembler instead of
the function call that isfinite emits. The assembler is
significantly faster. */