Skip to content

Commit 543d4b7

Browse files
committed
Fix warning in noise.c.
Just rearrange the order of #include files so that there's no warning about multiply defined macros.
1 parent 2427499 commit 543d4b7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

nodebox/ext/noise.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
// Based on: Malcolm Kesson, http://www.fundza.com/c4serious/noise/perlin/perlin.html
33
// © 2002-4 Malcolm Kesson. All rights reserved.
44

5+
#include <Python.h>
6+
57
#include <math.h>
68
#include <stdio.h>
79

@@ -48,8 +50,6 @@ double _generate(double x, double y, double z) {
4850

4951
// -------------------------------------------------------------------------------------
5052

51-
#include <Python.h>
52-
5353
static PyObject *
5454
generate(PyObject *self, PyObject *args) {
5555
double x, y, z, d;
@@ -84,4 +84,5 @@ int main(int argc, char *argv[]) {
8484
Py_Initialize();
8585
initnoise();
8686
return 0;
87-
}
87+
}
88+

0 commit comments

Comments
 (0)