Skip to content

Commit 9aa6c4a

Browse files
dopplershiftMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #12548: undef _XOPEN_SOURCE breaks the build in AIX
1 parent 62297d1 commit 9aa6c4a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

extern/ttconv/pprdrv_tt.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@
3434
#ifdef _POSIX_C_SOURCE
3535
# undef _POSIX_C_SOURCE
3636
#endif
37+
#ifndef _AIX
3738
#ifdef _XOPEN_SOURCE
3839
# undef _XOPEN_SOURCE
3940
#endif
41+
#endif
4042
#include <Python.h>
4143

4244
/*==========================================================================

src/_png.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,11 @@ extern "C" {
1616
# ifdef _POSIX_C_SOURCE
1717
# undef _POSIX_C_SOURCE
1818
# endif
19+
# ifndef _AIX
1920
# ifdef _XOPEN_SOURCE
2021
# undef _XOPEN_SOURCE
2122
# endif
23+
# endif
2224
}
2325

2426
#include "numpy_cpp.h"

src/mplutils.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ typedef unsigned __int8 uint8_t;
1414
#ifdef _POSIX_C_SOURCE
1515
# undef _POSIX_C_SOURCE
1616
#endif
17+
#ifndef _AIX
1718
#ifdef _XOPEN_SOURCE
1819
# undef _XOPEN_SOURCE
1920
#endif
21+
#endif
2022

2123
// Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
2224
#if defined(__sun) || defined(sun)

src/numpy_cpp.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,11 @@
2121
#ifdef _POSIX_C_SOURCE
2222
# undef _POSIX_C_SOURCE
2323
#endif
24+
#ifndef _AIX
2425
#ifdef _XOPEN_SOURCE
2526
# undef _XOPEN_SOURCE
2627
#endif
28+
#endif
2729

2830
// Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
2931
#if defined(__sun) || defined(sun)

0 commit comments

Comments
 (0)