From 10c7a3bb362c6446d0deb5a592b9f57e0e98d884 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sat, 9 Apr 2016 00:11:51 -0700 Subject: [PATCH] OpenVR: Fixed Linux build. --- 3rdparty/openvr/openvr_capi.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/3rdparty/openvr/openvr_capi.h b/3rdparty/openvr/openvr_capi.h index c01389cb6..230cd3b45 100644 --- a/3rdparty/openvr/openvr_capi.h +++ b/3rdparty/openvr/openvr_capi.h @@ -17,7 +17,11 @@ #define EXTERN_C #endif -#define OPENVR_FNTABLE_CALLTYPE __stdcall +#if defined( _WIN32 ) +# define OPENVR_FNTABLE_CALLTYPE __stdcall +#else +# define OPENVR_FNTABLE_CALLTYPE +#endif // // OPENVR API export macro #if defined( _WIN32 ) && !defined( _X360 ) @@ -44,11 +48,6 @@ #include -#if defined( __WIN32 ) -typedef char bool; -#endif - - // OpenVR Constants static const unsigned int k_unTrackingStringSize = 32;