[Python-checkins] CVS: python/dist/src/Include rangeobject.h,2.15,2.16

Martin v. L?wis loewis@users.sourceforge.net
2001年6月04日 22:58:46 -0700


Update of /cvsroot/python/python/dist/src/Include
In directory usw-pr-cvs1:/tmp/cvs-serv6223
Modified Files:
	rangeobject.h 
Log Message:
Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.
Index: rangeobject.h
===================================================================
RCS file: /cvsroot/python/python/dist/src/Include/rangeobject.h,v
retrieving revision 2.15
retrieving revision 2.16
diff -C2 -r2.15 -r2.16
*** rangeobject.h	2000年09月01日 23:29:26	2.15
--- rangeobject.h	2001年06月05日 05:58:44	2.16
***************
*** 2,5 ****
--- 2,11 ----
 /* Range object interface */
 
+ #ifndef Py_RANGEOBJECT_H
+ #define Py_RANGEOBJECT_H
+ #ifdef __cplusplus
+ extern "C" {
+ #endif
+ 
 /*
 A range object represents an integer range. This is an immutable object;
***************
*** 15,16 ****
--- 21,27 ----
 
 extern DL_IMPORT(PyObject *) PyRange_New(long, long, long, int);
+ 
+ #ifdef __cplusplus
+ }
+ #endif
+ #endif /* !Py_RANGEOBJECT_H */

AltStyle によって変換されたページ (->オリジナル) /