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
soapy_support
Josh Blum 7 years ago
parent 86ad584204
commit 9ceadfb645
  1. 5
      lib/rtl_tcp/rtl_tcp_source_f.h

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

Loading…
Cancel
Save