From 09af5cbf7e8518b5e664ecc5138e83a884de6eff Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Fri, 9 Jul 2010 20:29:58 -0700 Subject: uhd: define ssize_t for msvc, fixed warning as well --- host/include/uhd/config.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'host/include') diff --git a/host/include/uhd/config.hpp b/host/include/uhd/config.hpp index 013354d33..2360174a4 100644 --- a/host/include/uhd/config.hpp +++ b/host/include/uhd/config.hpp @@ -38,11 +38,17 @@ # pragma warning(disable: 4250) // 'class' : inherits 'method' via dominance #endif -//define logical operators +// define logical operators #ifdef BOOST_MSVC #include #endif +// define ssize_t +#ifdef BOOST_MSVC + #include + typedef ptrdiff_t ssize_t; +#endif + // http://gcc.gnu.org/wiki/Visibility // Generic helper definitions for shared library support #if defined(BOOST_HAS_DECLSPEC) -- cgit v1.2.3