Skip to content

Commit e5ed65d

Browse files
committed
Move definition of _GNU_SOURCE up
1 parent 07917f2 commit e5ed65d

File tree

1 file changed

+5
-5
lines changed
  • graalpython/com.oracle.graal.python.cext/include

1 file changed

+5
-5
lines changed

graalpython/com.oracle.graal.python.cext/include/pyconfig.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
#ifndef Py_PYCONFIG_H
4242
#define Py_PYCONFIG_H
4343

44+
/* Enable GNU extensions on systems that have them. */
45+
#ifndef _GNU_SOURCE
46+
#define _GNU_SOURCE 1
47+
#endif
48+
4449
// required for __UINT32_MAX__ etc.
4550
#include <limits.h>
4651

@@ -69,11 +74,6 @@
6974
/* Define to 1 if you have the ANSI C header files. */
7075
#define STDC_HEADERS 1
7176

72-
/* Enable GNU extensions on systems that have them. */
73-
#ifndef _GNU_SOURCE
74-
#define _GNU_SOURCE 1
75-
#endif
76-
7777
# ifndef UINT_MAX
7878
#define UINT_MAX __UINT32_MAX__
7979
#endif

0 commit comments

Comments
 (0)