diff --git a/winpr/include/winpr/nt.h b/winpr/include/winpr/nt.h index 5224e1d42..544993436 100644 --- a/winpr/include/winpr/nt.h +++ b/winpr/include/winpr/nt.h @@ -1272,7 +1272,7 @@ /* defined in ntstatus.h */ #if !defined(NTSTATUS_FROM_WIN32) && !defined(INLINE_NTSTATUS_FROM_WIN32) -INLINE NTSTATUS NTSTATUS_FROM_WIN32(long x) +static INLINE NTSTATUS NTSTATUS_FROM_WIN32(long x) { return x <= 0 ? (NTSTATUS)x : (NTSTATUS) (((x) & 0x0000FFFF) | (0x7 << 16) | 0xC0000000); }