rtl_tcp: fix ssize_t definition for MSVC

This was actually causing a cryptic compile error because of the define.
The fix was to typedef ssize_t as ptrdiff_t, the same as bladerf_common.h
This commit is contained in:
Josh Blum 2015-12-06 15:49:44 -08:00
parent 86ad584204
commit 9ceadfb645
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,10 @@ typedef char* optval_t;
typedef void* optval_t;
#define ssize_t int
#ifdef _MSC_VER
#include <cstddef>
typedef ptrdiff_t ssize_t;
#endif //_MSC_VER
/* copied from rtl sdr */
enum rtlsdr_tuner {