https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3731fd1661e09c438b5dc…
commit 3731fd1661e09c438b5dca6512db8399707b5fd2
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Fri Apr 9 15:12:13 2021 +0200
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Fri Apr 9 15:12:13 2021 +0200
[CRT] Properly declare rot functions in public headers
---
sdk/include/crt/stdlib.h | 4 ++--
sdk/lib/crt/stdlib/rot.c | 5 +++++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/sdk/include/crt/stdlib.h b/sdk/include/crt/stdlib.h
index a9fdbf604e7..a1a35636ad2 100644
--- a/sdk/include/crt/stdlib.h
+++ b/sdk/include/crt/stdlib.h
@@ -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
diff --git a/sdk/lib/crt/stdlib/rot.c b/sdk/lib/crt/stdlib/rot.c
index cb82df097fd..efd2359aaa1 100644
--- a/sdk/lib/crt/stdlib/rot.c
+++ b/sdk/lib/crt/stdlib/rot.c
@@ -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