mirror of
https://github.com/brmlab/kalibrate-rtl.git
synced 2025-08-03 06:33:37 +02:00
add win32 support
Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
parent
ed733cc952
commit
482dd05ecd
10 changed files with 140 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue