Skip to content

undef _XOPEN_SOURCE breaks the build in AIX #12548

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions extern/ttconv/pprdrv_tt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif
#ifndef _AIX
#ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
#endif
#endif
#include <Python.h>

/*==========================================================================
Expand Down
2 changes: 2 additions & 0 deletions src/_png.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ extern "C" {
# ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
# endif
# ifndef _AIX
# ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
# endif
# endif
}

#include "numpy_cpp.h"
Expand Down
2 changes: 2 additions & 0 deletions src/mplutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ typedef unsigned __int8 uint8_t;
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif
#ifndef _AIX
#ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
#endif
#endif

// Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
#if defined(__sun) || defined(sun)
Expand Down
2 changes: 2 additions & 0 deletions src/numpy_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@
#ifdef _POSIX_C_SOURCE
# undef _POSIX_C_SOURCE
#endif
#ifndef _AIX
#ifdef _XOPEN_SOURCE
# undef _XOPEN_SOURCE
#endif
#endif

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