gh-152433: Windows: ``_uuid`` module: improve UWP compatibility (#152793)

chris-eibl <[email protected]>
Newsgroups gmane.comp.python.cvs
Message-ID <[email protected]>
https://github.com/python/cpython/commit/ec1057ebb6b3d515bff058af2feebf2868aadd42
commit: ec1057ebb6b3d515bff058af2feebf2868aadd42
branch: main
author: thexai <[email protected]>
committer: chris-eibl <[email protected]>
date: 2026-07-19T15:19:40+02:00
summary:

gh-152433: Windows: ``_uuid`` module: improve UWP compatibility (#152793)

files:
M Modules/_uuidmodule.c

diff --git a/Modules/_uuidmodule.c b/Modules/_uuidmodule.c
index c31a7e8fea5608..3edc29a75b32ce 100644
--- a/Modules/_uuidmodule.c
+++ b/Modules/_uuidmodule.c
@@ -20,6 +20,9 @@
 
 #ifdef MS_WINDOWS
 #include <rpc.h>
+#ifndef RPC_S_OK
+#define RPC_S_OK 0L
+#endif
 #endif
 
 #ifndef MS_WINDOWS

_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.