[Python-checkins] CVS: python/dist/src/Include Python.h,2.19,2.20
M.-A. Lemburg
python-dev@python.org
Wed, 5 Jul 2000 01:53:21 -0700
Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv6017/Include
Modified Files:
Python.h
Log Message:
Added #defines to enable SUSv2 compatibility where available and
to switch on support for BSD and SysV on platforms which use glibc
such as Linux.
These #defines are documented in e.g. the file /usr/include/features.h
on Linux platforms and the SUSv2 docs.
Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.19
retrieving revision 2.20
diff -C2 -r2.19 -r2.20
*** Python.h 2000年06月30日 23:58:04 2.19
--- Python.h 2000年07月05日 08:53:18 2.20
***************
*** 13,16 ****
--- 13,26 ----
******************************************************************/
+ /* Enable compiler features including SUSv2 compatibility; switching
+ on C lib defines doesn't work here, because the symbols haven't
+ necessarily been defined yet. */
+ #ifndef _GNU_SOURCE
+ # define _GNU_SOURCE 1
+ #endif
+ #ifndef _XOPEN_SOURCE
+ # define _XOPEN_SOURCE 500
+ #endif
+
/* Include nearly all Python header files */