Fix compilation with GCC 11.X

This commit is contained in:
iamthesenate1 2021-09-04 13:56:50 +03:00 committed by iamthesenate1
parent 52313115bb
commit 6f3ff98fa4
2 changed files with 2 additions and 2 deletions

View File

@ -291,7 +291,7 @@ ULONG CTString::GetHash(void) const
INDEX len = strlen(str_String);
for(INDEX i=0; i<len; i++) {
ulKey = _rotl(ulKey,4)+toupper(str_String[i]);
ulKey = rotl(ulKey,4)+toupper(str_String[i]);
}
return ulKey;
}

View File

@ -232,7 +232,7 @@ MY_STATIC_ASSERT(size_tSize, sizeof(size_t) == sizeof(void*));
}
}
inline ULONG _rotl(ULONG ul, int bits)
inline ULONG rotl(ULONG ul, int bits)
{
#if (defined __GNU_INLINE_X86_32__)
// This, on the other hand, is wicked fast. :)