Skip to content

Commit

Permalink
MAINT: Get rid of some harmless gcc warnings about macro redefines.
Browse files Browse the repository at this point in the history
The Python.h header likes to be included first, otherwise warnings about
redefining "_POSIX_C_SOURCE" and "_XOPEN_SOURCE" are generated. This is
really a problem with the Python.h header, but can be worked around by
changing the order of inclusion.
  • Loading branch information
charris committed Aug 17, 2014
1 parent 4125912 commit 661c4a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion numpy/core/src/npysort/heapsort.c.src
Expand Up @@ -28,9 +28,9 @@

#define NPY_NO_DEPRECATED_API NPY_API_VERSION

#include <stdlib.h>
#include "npy_sort.h"
#include "npysort_common.h"
#include <stdlib.h>

#define NOT_USED NPY_UNUSED(unused)
#define PYA_QS_STACK 100
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/src/npysort/mergesort.c.src
Expand Up @@ -28,9 +28,9 @@

#define NPY_NO_DEPRECATED_API NPY_API_VERSION

#include <stdlib.h>
#include "npy_sort.h"
#include "npysort_common.h"
#include <stdlib.h>

#define NOT_USED NPY_UNUSED(unused)
#define PYA_QS_STACK 100
Expand Down
2 changes: 1 addition & 1 deletion numpy/core/src/npysort/quicksort.c.src
Expand Up @@ -28,9 +28,9 @@

#define NPY_NO_DEPRECATED_API NPY_API_VERSION

#include <stdlib.h>
#include "npy_sort.h"
#include "npysort_common.h"
#include <stdlib.h>

#define NOT_USED NPY_UNUSED(unused)
#define PYA_QS_STACK 100
Expand Down

0 comments on commit 661c4a5

Please sign in to comment.