mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
bpo-32627: Fix compile error when conflicting _uuid
headers included (GH-11751)
(cherry picked from commit 6ffd9b05df
)
Co-authored-by: ziheng <zihenglv@gmail.com>
This commit is contained in:
parent
b183b963f6
commit
76b72f6ea2
2 changed files with 7 additions and 3 deletions
|
@ -0,0 +1 @@
|
|||
Fix compile error when ``_uuid`` headers conflicting included.
|
|
@ -1,14 +1,17 @@
|
|||
/*
|
||||
* Python UUID module that wraps libuuid -
|
||||
* DCE compatible Universally Unique Identifier library.
|
||||
*/
|
||||
|
||||
#define PY_SSIZE_T_CLEAN
|
||||
|
||||
#include "Python.h"
|
||||
#ifdef HAVE_UUID_UUID_H
|
||||
#include <uuid/uuid.h>
|
||||
#endif
|
||||
#ifdef HAVE_UUID_H
|
||||
#elif defined(HAVE_UUID_H)
|
||||
#include <uuid.h>
|
||||
#endif
|
||||
|
||||
|
||||
static PyObject *
|
||||
py_uuid_generate_time_safe(PyObject *Py_UNUSED(context),
|
||||
PyObject *Py_UNUSED(ignored))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue