Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6ffd9b0

Browse files
zihengCatned-deily
authored andcommitted
bpo-32627: Fix compile error when conflicting _uuid headers included (GH-11751)
1 parent 549f7d4 commit 6ffd9b0

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix compile error when ``_uuid`` headers conflicting included.

Modules/_uuidmodule.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1+
/*
2+
* Python UUID module that wraps libuuid -
3+
* DCE compatible Universally Unique Identifier library.
4+
*/
5+
16
#define PY_SSIZE_T_CLEAN
27

38
#include "Python.h"
49
#ifdef HAVE_UUID_UUID_H
510
#include <uuid/uuid.h>
6-
#endif
7-
#ifdef HAVE_UUID_H
11+
#elif defined(HAVE_UUID_H)
812
#include <uuid.h>
913
#endif
1014

11-
1215
static PyObject *
1316
py_uuid_generate_time_safe(PyObject *Py_UNUSED(context),
1417
PyObject *Py_UNUSED(ignored))

0 commit comments

Comments
 (0)