[vlc-commits] configure.ac: Generate pragmas that MSVC understands
Hugo Beauzée-Luyssen
git at videolan.org
Fri Oct 24 17:12:22 CEST 2014
vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Oct 22 15:57:49 2014 +0200| [d4374ff3615271571358e18ed6449d6643694eb4] | committer: Hugo Beauzée-Luyssen
configure.ac: Generate pragmas that MSVC understands
Even though that pragma is standard C99, MSVC doesn't understand it.
An issue has been opened, and this commit should be reverted when/if
they fix it:
https://connect.microsoft.com/VisualStudio/feedback/details/1009089/unhandled-standard-macros
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d4374ff3615271571358e18ed6449d6643694eb4
---
configure.ac | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/configure.ac b/configure.ac
index 44e5bdf..9c3c52c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -999,8 +999,13 @@ AS_IF([test "${enable_optimizations}" != "no"], [
AS_IF([test "${ac_cv_c_fast_math}" = "no"], [VLC_RESTORE_FLAGS])
AH_BOTTOM([
#ifndef __FAST_MATH__
-# pragma STDC FENV_ACCESS OFF
-# pragma STDC FP_CONTRACT ON
+# ifndef _MSC_VER
+# pragma STDC FENV_ACCESS OFF
+# pragma STDC FP_CONTRACT ON
+# else
+# pragma fenv_access(off)
+# pragma fp_contract(on)
+# endif
#endif
])
More information about the vlc-commits
mailing list