mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-03-03 21:26:36 +00:00
xrt: Adjust how we define ssize_t on MSVC
This commit is contained in:
parent
4e11abc06b
commit
58ebd7ee20
|
@ -130,11 +130,9 @@ xrt_atomic_s32_cmpxchg(xrt_atomic_s32_t *p, int32_t old_, int32_t new_)
|
|||
}
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#ifdef XRT_64_BIT
|
||||
typedef int64_t ssize_t;
|
||||
#else
|
||||
typedef int32_t ssize_t;
|
||||
#endif
|
||||
typedef intptr_t ssize_t;
|
||||
#define _SSIZE_T_
|
||||
#define _SSIZE_T_DEFINED
|
||||
#endif
|
||||
|
||||
/*!
|
||||
|
|
Loading…
Reference in a new issue