tools: minor win fix

master
Hoernchen 11 years ago
parent dbc49549a0
commit 7614a4d684
  1. 3
      src/rtl_fm.c
  2. 3
      src/rtl_power.c

@ -48,7 +48,6 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h>
#ifndef _WIN32 #ifndef _WIN32
#include <unistd.h> #include <unistd.h>
@ -59,8 +58,10 @@
#include "getopt/getopt.h" #include "getopt/getopt.h"
#define usleep(x) Sleep(x/1000) #define usleep(x) Sleep(x/1000)
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) #define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5))
#define _USE_MATH_DEFINES
#endif #endif
#include <math.h>
#include <pthread.h> #include <pthread.h>
#include <libusb.h> #include <libusb.h>

@ -44,7 +44,6 @@
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <math.h>
#include <time.h> #include <time.h>
#ifndef _WIN32 #ifndef _WIN32
@ -56,8 +55,10 @@
#include "getopt/getopt.h" #include "getopt/getopt.h"
#define usleep(x) Sleep(x/1000) #define usleep(x) Sleep(x/1000)
#define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5)) #define round(x) (x > 0.0 ? floor(x + 0.5): ceil(x - 0.5))
#define _USE_MATH_DEFINES
#endif #endif
#include <math.h>
#include <pthread.h> #include <pthread.h>
#include <libusb.h> #include <libusb.h>

Loading…
Cancel
Save