forked from sdr/gr-osmosdr
provide NAN define for MSVC older than VC12
This fixes a minor compile issue on VC11 and below where source_impl.cc and sink_impl.cc use the float NAN define. The patch simply defines the NAN macro conditionally, in a common header (which seemed like the best place).
This commit is contained in:
parent
9ceadfb645
commit
c804460f5d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue