[pypy-commit] pypy default: define _GUN_SOURCE before any other includes

mattip pypy.commits at gmail.com
Sat Aug 13 15:00:52 EDT 2016


Author: Matti Picus <matti.picus at gmail.com>
Branch: 
Changeset: r86185:d468895a18b8
Date: 2016-08-13 21:59 +0300
http://bitbucket.org/pypy/pypy/changeset/d468895a18b8/

Log:	define _GUN_SOURCE before any other includes

diff --git a/pypy/module/cpyext/include/Python.h b/pypy/module/cpyext/include/Python.h
--- a/pypy/module/cpyext/include/Python.h
+++ b/pypy/module/cpyext/include/Python.h
@@ -2,6 +2,9 @@
 #define Py_PYTHON_H
 
 /* Compat stuff */
+#ifdef __GNUC__
+#define _GNU_SOURCE 1
+#endif
 #ifndef _WIN32
 # include <inttypes.h>
 # include <stdint.h>
@@ -52,7 +55,6 @@
 #ifndef DL_IMPORT
 #       define DL_IMPORT(RTYPE) RTYPE
 #endif
-
 #include <stdlib.h>
 
 #ifndef _WIN32


More information about the pypy-commit mailing list