aboutsummaryrefslogtreecommitdiffstats
path: root/host/include/uhd/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'host/include/uhd/config.h')
-rw-r--r--host/include/uhd/config.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/host/include/uhd/config.h b/host/include/uhd/config.h
index bacda212f..c7184ea4d 100644
--- a/host/include/uhd/config.h
+++ b/host/include/uhd/config.h
@@ -12,8 +12,11 @@
#include <iso646.h>
// Define ssize_t
-#include <stddef.h>
-typedef ptrdiff_t ssize_t;
+#ifndef _SSIZE_T_DEFINED
+#define _SSIZE_T_DEFINED
+# include <BaseTsd.h>
+typedef SSIZE_T ssize_t;
+#endif /* _SSIZE_T_DEFINED */
#endif /* _MSC_VER */