diff options
Diffstat (limited to 'src/pal/inc/pal.h')
-rw-r--r-- | src/pal/inc/pal.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pal/inc/pal.h b/src/pal/inc/pal.h index 9225e00561..35c9a51f43 100644 --- a/src/pal/inc/pal.h +++ b/src/pal/inc/pal.h @@ -5301,6 +5301,7 @@ inline WCHAR *PAL_wcsstr(WCHAR *_S, const WCHAR *_P) } #endif +#if !__has_builtin(_rotl) /*++ Function: _rotl @@ -5318,12 +5319,15 @@ unsigned int __cdecl _rotl(unsigned int value, int shift) retval = (value << shift) | (value >> (sizeof(int) * CHAR_BIT - shift)); return retval; } +#endif // !__has_builtin(_rotl) // On 64 bit unix, make the long an int. #ifdef BIT64 #define _lrotl _rotl #endif // BIT64 +#if !__has_builtin(_rotr) + /*++ Function: _rotr @@ -5342,6 +5346,8 @@ unsigned int __cdecl _rotr(unsigned int value, int shift) return retval; } +#endif // !__has_builtin(_rotr) + PALIMPORT int __cdecl abs(int); #ifndef PAL_STDCPP_COMPAT PALIMPORT LONG __cdecl labs(LONG); |