From 672d19080a61c1487e677c2ee4f986a024bc8589 Mon Sep 17 00:00:00 2001 From: thexai <58434170+thexai@users.noreply.github.com> Date: Wed, 1 Jul 2026 17:07:58 +0200 Subject: [PATCH] gh-152433: Windows: ``_uuid`` module: improve UWP compatibility --- .../Windows/2026-07-01-17-07-45.gh-issue-152433.uK7dKS.rst | 1 + Modules/_uuidmodule.c | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 Misc/NEWS.d/next/Windows/2026-07-01-17-07-45.gh-issue-152433.uK7dKS.rst diff --git a/Misc/NEWS.d/next/Windows/2026-07-01-17-07-45.gh-issue-152433.uK7dKS.rst b/Misc/NEWS.d/next/Windows/2026-07-01-17-07-45.gh-issue-152433.uK7dKS.rst new file mode 100644 index 000000000000000..7ad79d94bf376d4 --- /dev/null +++ b/Misc/NEWS.d/next/Windows/2026-07-01-17-07-45.gh-issue-152433.uK7dKS.rst @@ -0,0 +1 @@ +``_uuid`` module: improve UWP compatibility. diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c index c31a7e8fea56084..3edc29a75b32ce9 100644 --- a/Modules/_uuidmodule.c +++ b/Modules/_uuidmodule.c @@ -20,6 +20,9 @@ #ifdef MS_WINDOWS #include +#ifndef RPC_S_OK +#define RPC_S_OK 0L +#endif #endif #ifndef MS_WINDOWS