[Python-checkins] python/dist/src/Include Python.h, 2.60, 2.61 pyport.h, 2.65, 2.66 structmember.h, 2.21, 2.22

montanaro at users.sourceforge.net montanaro at users.sourceforge.net
Tue Feb 10 11:50:51 EST 2004


Update of /cvsroot/python/python/dist/src/Include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27540/Include

Modified Files:
	Python.h pyport.h structmember.h 
Log Message:
remove support for missing ANSI C header files (limits.h, stddef.h, etc).


Index: Python.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/Python.h,v
retrieving revision 2.60
retrieving revision 2.61
diff -C2 -d -r2.60 -r2.61
*** Python.h	22 Dec 2003 18:10:51 -0000	2.60
--- Python.h	10 Feb 2004 16:50:18 -0000	2.61
***************
*** 16,24 ****
  #endif
  
- #ifdef HAVE_LIMITS_H
  #include <limits.h>
- #else
- #error "limits.h is required by std C -- why isn't HAVE_LIMITS_H defined?"
- #endif
  
  #ifndef UCHAR_MAX
--- 16,20 ----
***************
*** 41,47 ****
  #include <string.h>
  #include <errno.h>
- #ifdef HAVE_STDLIB_H
  #include <stdlib.h>
- #endif
  #ifdef HAVE_UNISTD_H
  #include <unistd.h>
--- 37,41 ----

Index: pyport.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/pyport.h,v
retrieving revision 2.65
retrieving revision 2.66
diff -C2 -d -r2.65 -r2.66
*** pyport.h	17 Jan 2004 14:19:43 -0000	2.65
--- pyport.h	10 Feb 2004 16:50:18 -0000	2.66
***************
*** 86,92 ****
  #endif /* HAVE_UINTPTR_T */
  
- #ifdef HAVE_STDLIB_H
  #include <stdlib.h>
- #endif
  
  #include <math.h> /* Moved here from the math section, before extern "C" */
--- 86,90 ----

Index: structmember.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/structmember.h,v
retrieving revision 2.21
retrieving revision 2.22
diff -C2 -d -r2.21 -r2.22
*** structmember.h	20 Nov 2003 01:44:57 -0000	2.21
--- structmember.h	10 Feb 2004 16:50:18 -0000	2.22
***************
*** 8,14 ****
  /* Interface to map C struct members to Python object attributes */
  
- #ifdef HAVE_STDDEF_H
  #include <stddef.h> /* For offsetof */
- #endif
  
  /* The offsetof() macro calculates the offset of a structure member
--- 8,12 ----




More information about the Python-checkins mailing list