[Python-checkins] CVS: python/dist/src/Include Python.h,2.20,2.21

M.-A. Lemburg python-dev@python.org
Fri, 7 Jul 2000 04:24:51 -0700


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

Modified Files:
	Python.h 
Log Message:
Defunct the _XOPEN_SOURCE define for now. Suggested by Fredrik
Lundh as response to bug reports on True64 and IRIX.

Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.20
retrieving revision 2.21
diff -C2 -r2.20 -r2.21
*** Python.h	2000/07/05 08:53:18	2.20
--- Python.h	2000/07/07 11:24:49	2.21
***************
*** 13,24 ****
  ******************************************************************/
  
! /* 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
  
--- 13,29 ----
  ******************************************************************/
  
! /* 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
+ 
+ /* Forcing SUSv2 compatibility still produces problems on some
+    platforms, True64 and SGI IRIX begin two of them, so for now the
+    define is switched off. */
+ #if 0
  #ifndef _XOPEN_SOURCE
  # define _XOPEN_SOURCE	500
+ #endif
  #endif