Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1264)

Unified Diff: fusl/src/internal/libm.h

Issue 1581793002: Remove -Wno-unknown-pragmas from fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/internal/libm.h
diff --git a/fusl/src/internal/libm.h b/fusl/src/internal/libm.h
index df8641116af2ee442525828bfc27bc2de75ee508..48dabc4dc3d5a472626c251714812fa3563fd399 100644
--- a/fusl/src/internal/libm.h
+++ b/fusl/src/internal/libm.h
@@ -19,6 +19,12 @@
#include <complex.h>
#include <endian.h>
+#ifdef __clang__
viettrungluu 2016/01/12 23:38:26 Could you add a comment explaining this? (Include
kulakowski 2016/01/13 00:04:50 Yeah, I'll do that.
+#define PRAGMA_STDC_FENV_ACCESS_ON
+#else
+#define PRAGMA_STDC_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON")
+#endif
+
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
union ldshape {
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698