aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2015-04-22 22:17:24 -0700
committerDimitri Stolnikov <horiz0n@gmx.net>2015-04-28 22:27:53 +0200
commit3532d60c11529c8aeca58219bb06f2c2acf8e547 (patch)
tree491e71a0d2faf2b43ad23a97f9a5cfbc655e3e91
parentc092f9e2a3cea524ff02e7cad333069ca3dcd290 (diff)
osmo: minor msvc fixes for bladerf_common.h
-rw-r--r--lib/bladerf/bladerf_common.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bladerf/bladerf_common.h b/lib/bladerf/bladerf_common.h
index f67600f..d16c02f 100644
--- a/lib/bladerf/bladerf_common.h
+++ b/lib/bladerf/bladerf_common.h
@@ -31,6 +31,7 @@
#include <boost/assign.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
+#include <boost/weak_ptr.hpp>
#include <gnuradio/thread/thread.h>
#include <gnuradio/gr_complex.h>
@@ -40,6 +41,11 @@
#include "osmosdr/ranges.h"
#include "arg_helpers.h"
+#ifdef _MSC_VER
+#include <cstddef>
+typedef ptrdiff_t ssize_t;
+#endif //_MSC_VER
+
typedef boost::shared_ptr<struct bladerf> bladerf_sptr;
class bladerf_common