Author: Matti Picus <[email protected]> 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 _______________________________________________ pypy-commit mailing list [email protected] https://mail.python.org/mailman/listinfo/pypy-commit
