From 0e4a4b46450f1c24d89c409c20543032fdb5497d Mon Sep 17 00:00:00 2001
From: Naveen M K <naveen521kk@gmail.com>
Date: Fri, 1 Nov 2024 11:47:01 +0530
Subject: [PATCH 114/N] Add ucrt to version string

---
 Python/getcompiler.c | 5 +++++
 configure.ac         | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/Python/getcompiler.c b/Python/getcompiler.c
index 4b0b9b3..dd4d3c8 100644
--- a/Python/getcompiler.c
+++ b/Python/getcompiler.c
@@ -32,8 +32,13 @@
 #if defined(__clang__)
 #define str(x) #x
 #define xstr(x) str(x)
+#if defined(_UCRT)
+#define COMPILER COMP_SEP "[GCC UCRT Clang " xstr(__clang_major__) "." \
+        xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
+#else
 #define COMPILER COMP_SEP "[GCC Clang " xstr(__clang_major__) "." \
         xstr(__clang_minor__) "." xstr(__clang_patchlevel__) ARCH_SUFFIX "]"
+#endif
 #else
 #if defined(_UCRT)
 #define COMPILER COMP_SEP "[GCC UCRT " __VERSION__ ARCH_SUFFIX "]"
diff --git a/configure.ac b/configure.ac
index 8b82277..ebf01bc 100644
--- a/configure.ac
+++ b/configure.ac
@@ -6670,7 +6670,7 @@ case $host_os in
   if test $linking_to_ucrt = no; then
     PYD_PLATFORM_TAG+="_msvcrt"
   else
-    PYD_PLATFORM_TAG += "_ucrt"
+    PYD_PLATFORM_TAG+="_ucrt"
   fi
   if test -n "${cc_is_clang}"; then
     # it is CLANG32
