Fix building on macOS
macOS defines newlocale() in xlocale.h
This commit is contained in:
parent
9e7253c179
commit
30cb7286db
@ -18,7 +18,6 @@
|
||||
// Needed for _NSGetProgname
|
||||
#include <crt_externs.h>
|
||||
#include <objc/runtime.h>
|
||||
#include <xlocale.h>
|
||||
|
||||
#if (MAC_OS_X_VERSION_MAX_ALLOWED < 101200)
|
||||
#define NSWindowStyleMaskResizable NSResizableWindowMask
|
||||
|
||||
@ -11,6 +11,7 @@
|
||||
#include <unistd.h>
|
||||
#undef _DARWIN_C_SOURCE
|
||||
#endif
|
||||
|
||||
#include "data-types.h"
|
||||
#include "cleanup.h"
|
||||
#include "safe-wrappers.h"
|
||||
@ -24,13 +25,16 @@
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
#include <locale.h>
|
||||
|
||||
#ifdef WITH_PROFILER
|
||||
#include <gperftools/profiler.h>
|
||||
#endif
|
||||
|
||||
#include "monotonic.h"
|
||||
|
||||
#ifdef __APPLE__
|
||||
#include <libproc.h>
|
||||
#include <xlocale.h>
|
||||
|
||||
static PyObject*
|
||||
user_cache_dir() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user