umtrx: provided nan() function for MSVC 2012

This commit is contained in:
Josh Blum
2015-04-27 16:56:35 -07:00
parent 99a409192e
commit 624f089dcb
2 changed files with 8 additions and 0 deletions

View File

@@ -20,6 +20,10 @@
#include <iostream>
#if defined(_MSC_VER) && (_MSC_VER <= 1700)
#define nan(arg) std::strtod("NAN()", (char**)NULL)
#endif
using namespace uhd;
ads1015_ctrl::ads1015_ctrl()

View File

@@ -20,6 +20,10 @@
#include <iostream>
#if defined(_MSC_VER) && (_MSC_VER <= 1700)
#define nan(arg) std::strtod("NAN()", (char**)NULL)
#endif
using namespace uhd;
tmp102_ctrl::tmp102_ctrl()