https://git.reactos.org/?p=reactos.git;a=commitdiff;h=e10892e4f4c3216f7db00eb51ab95070c5d408cc

commit e10892e4f4c3216f7db00eb51ab95070c5d408cc
Author:     Jérôme Gardou <[email protected]>
AuthorDate: Tue Jun 22 11:09:12 2021 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Mon Jun 28 10:20:57 2021 +0200

    [CRT] Put __MINGW_EXTENSION (whatever that means) in front of function 
declarations
    
    Needed for next commit
---
 sdk/include/crt/io.h     |  6 +++---
 sdk/include/crt/stdio.h  |  4 ++--
 sdk/include/crt/stdlib.h | 30 +++++++++++++++---------------
 sdk/include/crt/wchar.h  | 12 ++++++------
 4 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/sdk/include/crt/io.h b/sdk/include/crt/io.h
index 5e29e67680b..404407d7dba 100644
--- a/sdk/include/crt/io.h
+++ b/sdk/include/crt/io.h
@@ -396,8 +396,8 @@ _getcwd(
 
 #if _INTEGRAL_MAX_BITS >= 64
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -452,8 +452,8 @@ _getcwd(
     _In_ intptr_t _FindHandle,
     _Out_ struct __finddata64_t *_FindData);
 
-  _Check_return_opt_
   __MINGW_EXTENSION
+  _Check_return_opt_
   _CRTIMP
   __int64
   __cdecl
@@ -462,8 +462,8 @@ _getcwd(
     _In_ __int64 _Offset,
     _In_ int _Origin);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
diff --git a/sdk/include/crt/stdio.h b/sdk/include/crt/stdio.h
index 40dd62ae76b..bff3578088d 100644
--- a/sdk/include/crt/stdio.h
+++ b/sdk/include/crt/stdio.h
@@ -391,8 +391,8 @@ extern "C" {
     _In_ __int64 _Offset,
     _In_ int _Origin);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1186,8 +1186,8 @@ extern "C" {
     _In_ __int64 _Offset,
     _In_ int _Origin);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
diff --git a/sdk/include/crt/stdlib.h b/sdk/include/crt/stdlib.h
index a1a35636ad2..2d0af78e3a3 100644
--- a/sdk/include/crt/stdlib.h
+++ b/sdk/include/crt/stdlib.h
@@ -403,16 +403,16 @@ extern "C" {
     _Pre_notnull_ _Post_z_ char *_DstBuf,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
   _atoi64(
     _In_z_ const char *_String);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -420,8 +420,8 @@ extern "C" {
     _In_z_ const char *_String,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -430,8 +430,8 @@ extern "C" {
     _Out_opt_ _Deref_post_z_ char **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -441,8 +441,8 @@ extern "C" {
     _In_ int _Radix,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl
@@ -451,8 +451,8 @@ extern "C" {
     _Out_opt_ _Deref_post_z_ char **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl
@@ -995,16 +995,16 @@ extern "C" {
     _Pre_notnull_ _Post_z_ wchar_t *_DstBuf,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
   _wtoi64(
     _In_z_ const wchar_t *_Str);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1012,8 +1012,8 @@ extern "C" {
     _In_z_ const wchar_t *_Str,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1022,8 +1022,8 @@ extern "C" {
     _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1033,8 +1033,8 @@ extern "C" {
     _In_ int _Radix,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl
@@ -1043,8 +1043,8 @@ extern "C" {
     _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl
@@ -1203,8 +1203,8 @@ extern "C" {
     _In_ int _Shift);
 
 #if _INTEGRAL_MAX_BITS >= 64
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   unsigned __int64
   __cdecl
   _rotl64(
@@ -1220,8 +1220,8 @@ extern "C" {
     _In_ int _Shift);
 
 #if _INTEGRAL_MAX_BITS >= 64
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   unsigned __int64
   __cdecl
   _rotr64(
@@ -1438,7 +1438,7 @@ extern "C" {
 
   __MINGW_EXTENSION typedef struct { long long quot, rem; } lldiv_t;
 
-  _Check_return_ __MINGW_EXTENSION lldiv_t __cdecl lldiv(_In_ long long, _In_ 
long long);
+  __MINGW_EXTENSION _Check_return_ lldiv_t __cdecl lldiv(_In_ long long, _In_ 
long long);
 
   __MINGW_EXTENSION __CRT_INLINE long long __cdecl llabs(_In_ long long _j) { 
return (_j >= 0 ? _j : -_j); }
 
diff --git a/sdk/include/crt/wchar.h b/sdk/include/crt/wchar.h
index 309bed76cef..f708917ace3 100644
--- a/sdk/include/crt/wchar.h
+++ b/sdk/include/crt/wchar.h
@@ -1761,16 +1761,16 @@ _CRTIMP int __cdecl iswblank(wint_t _C);
     _Pre_notnull_ _Post_z_ wchar_t *_DstBuf,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
   _wtoi64(
     _In_z_ const wchar_t *_Str);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1778,8 +1778,8 @@ _CRTIMP int __cdecl iswblank(wint_t _C);
     _In_z_ const wchar_t *_Str,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1788,8 +1788,8 @@ _CRTIMP int __cdecl iswblank(wint_t _C);
     _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   __int64
   __cdecl
@@ -1799,8 +1799,8 @@ _CRTIMP int __cdecl iswblank(wint_t _C);
     _In_ int _Radix,
     _In_opt_ _locale_t _Locale);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl
@@ -1809,8 +1809,8 @@ _CRTIMP int __cdecl iswblank(wint_t _C);
     _Out_opt_ _Deref_post_z_ wchar_t **_EndPtr,
     _In_ int _Radix);
 
-  _Check_return_
   __MINGW_EXTENSION
+  _Check_return_
   _CRTIMP
   unsigned __int64
   __cdecl

Reply via email to