commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 01/06: qtgui: accounted for MSVC having _fi


From: git
Subject: [Commit-gnuradio] [gnuradio] 01/06: qtgui: accounted for MSVC having _finite() instead of std::isfinite()
Date: Tue, 26 Aug 2014 18:02:39 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 187b3f84781c1bc5a06caacc97802e23651acbe3
Author: Nicholas Corgan <address@hidden>
Date:   Thu Aug 7 13:39:37 2014 -0700

    qtgui: accounted for MSVC having _finite() instead of std::isfinite()
---
 gr-qtgui/lib/number_sink_impl.cc | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/gr-qtgui/lib/number_sink_impl.cc b/gr-qtgui/lib/number_sink_impl.cc
index 4e513d5..640bca3 100644
--- a/gr-qtgui/lib/number_sink_impl.cc
+++ b/gr-qtgui/lib/number_sink_impl.cc
@@ -32,6 +32,15 @@
 #include <qwt_symbol.h>
 #include <cmath>
 
+#ifdef _MSC_VER
+#define isfinite _finite
+
+#include <float.h>
+namespace std {
+    using ::_finite;
+}
+#endif
+
 namespace gr {
   namespace qtgui {
 



reply via email to

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