diff options
-rw-r--r-- | lib/config.h.in | 6 | ||||
-rw-r--r-- | lib/rtl_tcp/rtl_tcp_source_f.h | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/lib/config.h.in b/lib/config.h.in index 66c3e1b..542b364 100644 --- a/lib/config.h.in +++ b/lib/config.h.in @@ -18,4 +18,10 @@ #cmakedefine ENABLE_AIRSPY #cmakedefine ENABLE_SOAPY +//provide NAN define for MSVC older than VC12 +#if defined(_MSC_VER) && (_MSC_VER < 1800) +#include <limits> +#define NAN std::numeric_limits<double>::quiet_NaN() +#endif + #endif // CONFIG_H_IN diff --git a/lib/rtl_tcp/rtl_tcp_source_f.h b/lib/rtl_tcp/rtl_tcp_source_f.h index d1d918c..84ac57a 100644 --- a/lib/rtl_tcp/rtl_tcp_source_f.h +++ b/lib/rtl_tcp/rtl_tcp_source_f.h @@ -42,7 +42,10 @@ typedef char* optval_t; typedef void* optval_t;
#endif
-#define ssize_t int
+#ifdef _MSC_VER
+#include <cstddef>
+typedef ptrdiff_t ssize_t;
+#endif //_MSC_VER
/* copied from rtl sdr */
enum rtlsdr_tuner {
|