lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi] [PATCH] Use compiler-provided expm1l() and log1pl() functions with


From: Vadim Zeitlin
Subject: [lmi] [PATCH] Use compiler-provided expm1l() and log1pl() functions with MSVC 12.
Date: Sun, 16 Nov 2014 03:17:52 +0100

 Could you please apply the following trivial patch? With the exception of
the problem in soa_helpers.hpp, this is all that's needed to make LMI build
with MSVC12.

 TIA!
VZ

>From fb6f1bf0128cfee1065d4c0865781d2606d5a547 Mon Sep 17 00:00:00 2001
From: Vadim Zeitlin <address@hidden>
Date: Sun, 16 Nov 2014 03:14:13 +0100
Subject: [PATCH] Use compiler-provided expm1l() and log1pl() functions with 
MSVC 12.

MSVC compiler finally provides these C99 functions, so use them when building
with it, to avoid conflicts between them and the fallback versions.
---
 config_msvc.hpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/config_msvc.hpp b/config_msvc.hpp
index df3a5c3..4436c64 100644
--- a/config_msvc.hpp
+++ b/config_msvc.hpp
@@ -58,6 +58,11 @@
     #undef putchar
 #endif
 
+#if _MSC_VER >= 1800
+    #define LMI_COMPILER_PROVIDES_EXPM1L
+    #define LMI_COMPILER_PROVIDES_LOG1PL
+#endif
+
 // MSVC does not define these constants from fcntl.h however, amazingly enough,
 // uses the same values as Unix systems do with its _access() function (except
 // that it doesn't support X_OK as files have no "executable" attribute under
-- 
1.7.9

reply via email to

[Prev in Thread] Current Thread [Next in Thread]