File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed
Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,17 @@ _ACRTIMP int __cdecl fesetround(_In_ int _Round);
6464 // initialized, indicating no exceptions are masked. In the current
6565 // implementation (_Fenv1), the global variable is initialized with all
6666 // exceptions masked, which is the actual initial environment.
67+ #ifdef __cplusplus
68+ #define CPP_EXTERN extern
69+ #else
70+ #define CPP_EXTERN
71+ #endif
6772 #if defined _M_IX86
68- __declspec (selectany ) extern const fenv_t _Fenv1 = { 0x3f3f103f , 0 };
73+ CPP_EXTERN __declspec(selectany ) const fenv_t _Fenv1 = { 0x3f3f103f , 0 };
6974 #elif defined _M_X64
70- __declspec(selectany ) extern const fenv_t _Fenv1 = { 0x3f00003f , 0 };
75+ CPP_EXTERN __declspec (selectany ) const fenv_t _Fenv1 = { 0x3f00003f , 0 };
7176 #else
72- __declspec(selectany ) extern const fenv_t _Fenv1 = { 0x0000003f , 0 };
77+ CPP_EXTERN __declspec(selectany ) const fenv_t _Fenv1 = { 0x0000003f , 0 };
7378 #endif
7479 #endif
7580
You can’t perform that action at this time.
0 commit comments