diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-09 20:29:58 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-09 20:29:58 -0700 |
commit | 09af5cbf7e8518b5e664ecc5138e83a884de6eff (patch) | |
tree | f4e03e8a5229dad20797a8f5d2500d3e8b34b69f /host/include | |
parent | c898ca9751d1b274ae8f8f7afc2d5bc54b6ef30c (diff) | |
download | uhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.tar.gz uhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.tar.bz2 uhd-09af5cbf7e8518b5e664ecc5138e83a884de6eff.zip |
uhd: define ssize_t for msvc, fixed warning as well
Diffstat (limited to 'host/include')
-rw-r--r-- | host/include/uhd/config.hpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 <ciso646> #endif +// define ssize_t +#ifdef BOOST_MSVC + #include <cstddef> + typedef ptrdiff_t ssize_t; +#endif + // http://gcc.gnu.org/wiki/Visibility // Generic helper definitions for shared library support #if defined(BOOST_HAS_DECLSPEC) |