[CRT] Properly declare rot functions in public headers

This commit is contained in:
Jérôme Gardou 2021-04-09 15:12:13 +02:00
parent 620f333252
commit 3731fd1661
2 changed files with 7 additions and 2 deletions

View file

@ -1193,7 +1193,7 @@ extern "C" {
_putenv(
_In_z_ const char *_EnvString);
#if !defined(__GNUC__) && !defined(__clang__)
#if !defined(__clang__)
_Check_return_
unsigned int
@ -1229,7 +1229,7 @@ extern "C" {
_In_ int _Shift);
#endif
#endif /* !defined(__GNUC__) && !defined(__clang__) */
#endif /* !defined(__clang__) */
_CRTIMP
void

View file

@ -31,6 +31,11 @@ unsigned long _lrotr(unsigned long value, int shift) __asm__("_lrotr");
unsigned int _rotl( unsigned int value, int shift ) __asm__("_rotl");
unsigned long _lrotl( unsigned long value, int shift ) __asm__("_lrotl");
# endif
#else
unsigned int _rotr( unsigned int value, int shift );
unsigned long _lrotr(unsigned long value, int shift);
unsigned int _rotl( unsigned int value, int shift );
unsigned long _lrotl( unsigned long value, int shift );
#endif
/*
* @implemented