- improved compatibility for win

git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@116 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
2015-01-05 13:35:22 +00:00
parent 80cc6714ae
commit 3b38c6a587
2 changed files with 12 additions and 1 deletions
+5
View File
@@ -1,4 +1,5 @@
#include <cmath> #include <cmath>
#include <float.h>
#include "Receiver.h" #include "Receiver.h"
#include "MinMaxLemire.h" #include "MinMaxLemire.h"
#include "radio/Interpolation.hpp" #include "radio/Interpolation.hpp"
@@ -741,7 +742,11 @@ void Receiver::initFilterRcf()
{ {
// Fixed at symbol duration 2/fs // Fixed at symbol duration 2/fs
// -> RCF_ROLLOFF and symbol rate parameter have no influence // -> RCF_ROLLOFF and symbol rate parameter have no influence
#ifdef _WINDOWS
m_farrow.load("C:\\Users\\jens\\farrow_coeff.dat");
#else
m_farrow.load("/home/jens/farrow_coeff.dat"); m_farrow.load("/home/jens/farrow_coeff.dat");
#endif
} }
} }
+6
View File
@@ -18,6 +18,12 @@
#include <radio/Interpolation.hpp> #include <radio/Interpolation.hpp>
#include <radio/Nco.hpp> #include <radio/Nco.hpp>
#ifdef _WINDOWS
#include <float.h>
#define isnan _isnan
#define isinf(x) (!_finite(x))
#endif
using namespace Radio; using namespace Radio;
// --------------------------------------------------- // ---------------------------------------------------