[Python-checkins] CVS: python/dist/src/Include Python.h,2.16.2.1,2.16.2.2

Fred L. Drake python-dev@python.org
Thu, 10 Aug 2000 14:28:51 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory slayer.i.sourceforge.net:/tmp/cvs-serv17437/Include

Modified Files:
      Tag: cnri-16-start
	Python.h 
Log Message:

Merge in first half of 2.19->2.20 patch to pick up as many definitions from
the glibc headers as possible.  The second half is omitted since it was
later disabled.  This is needed to prevent warnings about strptime() in
Modules/timemodule.c for glibc-based platforms.

Original patch contributed by Marc-Andre Lemburg.


Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.16.2.1
retrieving revision 2.16.2.2
diff -C2 -r2.16.2.1 -r2.16.2.2
*** Python.h	2000/08/03 16:48:06	2.16.2.1
--- Python.h	2000/08/10 21:28:49	2.16.2.2
***************
*** 3,6 ****
--- 3,12 ----
  /* Since this is a "meta-include" file, no #ifdef __cplusplus / extern "C" { */
  
+ /* Enable compiler features; 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
+ 
  /* Include nearly all Python header files */