From ebd6558a30f9e7094fa8dd8e39e5a48834a28ccb Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Thu, 3 May 2018 18:55:42 +0100 Subject: [PATCH] __cplusplus macro usage tweak --- Lib/typemaps/fragments.swg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/typemaps/fragments.swg b/Lib/typemaps/fragments.swg index aaf948c05..60292c350 100644 --- a/Lib/typemaps/fragments.swg +++ b/Lib/typemaps/fragments.swg @@ -102,7 +102,7 @@ /* isfinite() is a macro for C99 */ # if defined(isfinite) # define SWIG_isfinite(X) (isfinite(X)) -# elif defined __cplusplus && __cplusplus >= 201103L +# elif defined(__cplusplus) && __cplusplus >= 201103L /* Use a template so that this works whether isfinite() is std::isfinite() or * in the global namespace. The reality seems to vary between compiler * versions.