https://git.reactos.org/?p=reactos.git;a=commitdiff;h=45ed1a9b6d02168bac7f1…
commit 45ed1a9b6d02168bac7f1b9b94e6067bc1d4f647
Author: Doug Lyons <douglyons(a)douglyons.com>
AuthorDate: Sat Feb 15 20:03:52 2025 -0600
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Feb 15 20:03:52 2025 -0600
[UCRT] Fix MSVC compiling on VS 2017 after Timo's UCRT commits (#7718)
CORE-19996
Verified using
https://godbolt.org.
---
sdk/lib/ucrt/math/_dclass.c | 2 +-
sdk/lib/ucrt/math/_dtest.c | 2 +-
sdk/lib/ucrt/math/_fdclass.c | 2 +-
sdk/lib/ucrt/math/_fdtest.c | 2 +-
sdk/lib/ucrt/stdlib/div.cpp | 2 +-
sdk/lib/ucrt/stdlib/ldiv.cpp | 2 +-
sdk/lib/ucrt/stdlib/lldiv.cpp | 2 +-
7 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/sdk/lib/ucrt/math/_dclass.c b/sdk/lib/ucrt/math/_dclass.c
index aeeff8ccde0..076f495ca30 100644
--- a/sdk/lib/ucrt/math/_dclass.c
+++ b/sdk/lib/ucrt/math/_dclass.c
@@ -11,7 +11,7 @@
#include <math.h>
#include <stdint.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(_dclass)
#endif
diff --git a/sdk/lib/ucrt/math/_dtest.c b/sdk/lib/ucrt/math/_dtest.c
index 34b03b52b36..fb659f17739 100644
--- a/sdk/lib/ucrt/math/_dtest.c
+++ b/sdk/lib/ucrt/math/_dtest.c
@@ -10,7 +10,7 @@
#include <math.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(_dtest)
#endif
diff --git a/sdk/lib/ucrt/math/_fdclass.c b/sdk/lib/ucrt/math/_fdclass.c
index 4714a9d6664..39190f82fcb 100644
--- a/sdk/lib/ucrt/math/_fdclass.c
+++ b/sdk/lib/ucrt/math/_fdclass.c
@@ -11,7 +11,7 @@
#include <math.h>
#include <stdint.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(_fdclass)
#endif
diff --git a/sdk/lib/ucrt/math/_fdtest.c b/sdk/lib/ucrt/math/_fdtest.c
index 584d193191f..756fd89cbdd 100644
--- a/sdk/lib/ucrt/math/_fdtest.c
+++ b/sdk/lib/ucrt/math/_fdtest.c
@@ -10,7 +10,7 @@
#include <math.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(_fdtest)
#endif
diff --git a/sdk/lib/ucrt/stdlib/div.cpp b/sdk/lib/ucrt/stdlib/div.cpp
index 199c2d6da64..9eb9e479b85 100644
--- a/sdk/lib/ucrt/stdlib/div.cpp
+++ b/sdk/lib/ucrt/stdlib/div.cpp
@@ -9,7 +9,7 @@
#include <stdlib.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(div)
#endif
extern "C" div_t __cdecl div(int const numerator, int const denominator)
diff --git a/sdk/lib/ucrt/stdlib/ldiv.cpp b/sdk/lib/ucrt/stdlib/ldiv.cpp
index e9d7bca0e3f..956503ad71d 100644
--- a/sdk/lib/ucrt/stdlib/ldiv.cpp
+++ b/sdk/lib/ucrt/stdlib/ldiv.cpp
@@ -9,7 +9,7 @@
#include <stdlib.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(ldiv)
#endif
extern "C" ldiv_t __cdecl ldiv(long const numerator, long const denominator)
diff --git a/sdk/lib/ucrt/stdlib/lldiv.cpp b/sdk/lib/ucrt/stdlib/lldiv.cpp
index c07838841d9..d3f40c30b41 100644
--- a/sdk/lib/ucrt/stdlib/lldiv.cpp
+++ b/sdk/lib/ucrt/stdlib/lldiv.cpp
@@ -9,7 +9,7 @@
#include <stdlib.h>
-#ifdef _MSC_VER
+#if defined(_MSC_VER) && (_MSC_VER >= 1922)
#pragma function(lldiv)
#endif
extern "C" lldiv_t __cdecl lldiv(long long const numerator, long long const
denominator)