https://git.reactos.org/?p=reactos.git;a=commitdiff;h=de3a6706e7ea508024ccd63a4b7993931b4354d6
commit de3a6706e7ea508024ccd63a4b7993931b4354d6 Author: Timo Kreuzer <timo.kreu...@reactos.org> AuthorDate: Mon Nov 4 16:28:56 2024 +0200 Commit: Timo Kreuzer <timo.kreu...@reactos.org> CommitDate: Thu Jan 30 11:30:32 2025 +0200 [UCRT] fenv.h: Fix GCC build of _Fenv1 --- sdk/include/ucrt/fenv.h | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sdk/include/ucrt/fenv.h b/sdk/include/ucrt/fenv.h index 6384e4697b5..37e0ecd4110 100644 --- a/sdk/include/ucrt/fenv.h +++ b/sdk/include/ucrt/fenv.h @@ -64,12 +64,17 @@ _ACRTIMP int __cdecl fesetround(_In_ int _Round); // initialized, indicating no exceptions are masked. In the current // implementation (_Fenv1), the global variable is initialized with all // exceptions masked, which is the actual initial environment. + #ifdef __cplusplus + #define CPP_EXTERN extern + #else + #define CPP_EXTERN + #endif #if defined _M_IX86 - __declspec(selectany) extern const fenv_t _Fenv1 = { 0x3f3f103f, 0 }; + CPP_EXTERN __declspec(selectany) const fenv_t _Fenv1 = { 0x3f3f103f, 0 }; #elif defined _M_X64 - __declspec(selectany) extern const fenv_t _Fenv1 = { 0x3f00003f, 0 }; + CPP_EXTERN __declspec(selectany) const fenv_t _Fenv1 = { 0x3f00003f, 0 }; #else - __declspec(selectany) extern const fenv_t _Fenv1 = { 0x0000003f, 0 }; + CPP_EXTERN __declspec(selectany) const fenv_t _Fenv1 = { 0x0000003f, 0 }; #endif #endif