summaryrefslogtreecommitdiff
path: root/psycopg/psycopgmodule.c
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2006-09-02 09:00:47 +0000
committerFederico Di Gregorio <fog@initd.org>2006-09-02 09:00:47 +0000
commita9d307140e8366bc16a280f6edba12ea41fa0e1c (patch)
tree38d0cabe3c1b72098ceccf8d4b1545d200c20bdd /psycopg/psycopgmodule.c
parentdbd976bc03106a869c2ccad622749161126693d5 (diff)
downloadpsycopg2-a9d307140e8366bc16a280f6edba12ea41fa0e1c.tar.gz
mx fix to build on win32.
Diffstat (limited to 'psycopg/psycopgmodule.c')
-rw-r--r--psycopg/psycopgmodule.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/psycopg/psycopgmodule.c b/psycopg/psycopgmodule.c
index 6ea4607..b4ea5cb 100644
--- a/psycopg/psycopgmodule.c
+++ b/psycopg/psycopgmodule.c
@@ -680,6 +680,10 @@ init_psycopg(void)
#ifdef HAVE_PYDATETIME
pydatetimeType.tp_alloc = PyType_GenericAlloc;
#endif
-
+
+#ifdef HAVE_MXDATETIME
+ mxdatetimeType.tp_alloc = PyType_GenericAlloc;
+#endif
+
Dprintf("initpsycopg: module initialization complete");
}