[Python-checkins] python/nondist/sandbox/datetime datetime.h,1.7,1.8
tim_one@users.sourceforge.net
tim_one@users.sourceforge.net
Thu, 21 Nov 2002 12:24:21 -0800
Update of /cvsroot/python/python/nondist/sandbox/datetime
In directory sc8-pr-cvs1:/tmp/cvs-serv12883
Modified Files:
datetime.h
Log Message:
A hack to get this to compile on Windows. It does, and the C tests
pass now on Windows too. Will clean up later.
Index: datetime.h
===================================================================
RCS file: /cvsroot/python/python/nondist/sandbox/datetime/datetime.h,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** datetime.h 21 Nov 2002 19:24:53 -0000 1.7
--- datetime.h 21 Nov 2002 20:24:18 -0000 1.8
***************
*** 22,28 ****
--- 22,40 ----
} PyDateTime_DateTime;
+ /* XXX CLEAN THIS UP. Using PyAPI_DATA doesn't work on Windows for
+ * XXX complicated reasons. One would like not to have the "static"
+ * XXX thingies here either, but with the global structure of #includes
+ * XXX right now, they're needed to prevent a slew of "undeclared name"
+ * XXX errors later.
+ */
+ #if 0
PyAPI_DATA(PyTypeObject) PyDateTime_DateType;
PyAPI_DATA(PyTypeObject) PyDateTime_DateTimeType;
PyAPI_DATA(PyTypeObject) PyDateTime_DeltaType;
+ #else
+ static PyTypeObject PyDateTime_DateType;
+ static PyTypeObject PyDateTime_DateTimeType;
+ static PyTypeObject PyDateTime_DeltaType;
+ #endif
/* Apply for date instances. */