From 8603c6a3eeb114081bae40eac2b8c45d05e96f66 Mon Sep 17 00:00:00 2001 From: Nicholas Corgan Date: Mon, 20 Jul 2015 11:16:10 -0700 Subject: nirio: fixed defines for OS X vs. other unsupported platforms (master) --- host/include/uhd/transport/nirio/nirio_driver_iface.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'host/include') diff --git a/host/include/uhd/transport/nirio/nirio_driver_iface.h b/host/include/uhd/transport/nirio/nirio_driver_iface.h index c562f0ca5..2668c10b9 100644 --- a/host/include/uhd/transport/nirio/nirio_driver_iface.h +++ b/host/include/uhd/transport/nirio/nirio_driver_iface.h @@ -32,7 +32,7 @@ #ifdef _MSC_VER #pragma warning(default:4201) #endif -#elif !defined(UHD_PLATFORM_LINUX) +#elif defined(UHD_PLATFORM_MACOS) #include #endif @@ -85,8 +85,10 @@ const uint32_t NIRIO_IOCTL_PRE_CLOSE = typedef int rio_dev_handle_t; #elif defined(UHD_PLATFORM_WIN32) typedef HANDLE rio_dev_handle_t; -#else +#elif defined(UHD_PLATFORM_MACOS) typedef io_connect_t rio_dev_handle_t; +#else + typedef int rio_dev_handle_t; #endif static const rio_dev_handle_t INVALID_RIO_HANDLE = ((rio_dev_handle_t)-1); -- cgit v1.2.3