[vlc-devel] [PATCH vlc 2.2] configure: add missed pragmas for FP math

KO Myung-Hun komh78 at gmail.com
Sat Oct 1 15:20:13 CEST 2016


---
 configure.ac | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/configure.ac b/configure.ac
index cb1de25..0d12339 100644
--- a/configure.ac
+++ b/configure.ac
@@ -988,8 +988,15 @@ AS_IF([test "${enable_optimizations}" != "no"], [
   AC_LANG_POP
 
 AH_BOTTOM([
+#if defined(_MSC_VER) && !defined(__clang__)
+# pragma fenv_access(off)
+# pragma fp_contract(on)
+#elif defined(__GNUC__)
+/* Not supported so far */
+#else
 # pragma STDC FENV_ACCESS OFF
 # pragma STDC FP_CONTRACT ON
+#endif
 ])
 
   dnl Check for -funroll-loops
-- 
2.9.2



More information about the vlc-devel mailing list