add win32 support

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Hoernchen 2012-10-11 02:09:31 +02:00 committed by Steve Markgraf
parent ed733cc952
commit 482dd05ecd
10 changed files with 140 additions and 16 deletions

View file

@ -28,9 +28,12 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef _WIN32
#include <unistd.h>
#endif
#include <string.h>
#include <pthread.h>
#define _USE_MATH_DEFINES
#include <math.h>
#include <complex>
@ -39,6 +42,10 @@
extern int g_verbosity;
#ifdef _WIN32
inline double round(double x) { return floor(x + 0.5); }
#endif
usrp_source::usrp_source(float sample_rate, long int fpga_master_clock_freq) {
m_fpga_master_clock_freq = fpga_master_clock_freq;