diff options
| author | Federico Di Gregorio <fog@initd.org> | 2006-09-02 09:00:47 +0000 |
|---|---|---|
| committer | Federico Di Gregorio <fog@initd.org> | 2006-09-02 09:00:47 +0000 |
| commit | a9d307140e8366bc16a280f6edba12ea41fa0e1c (patch) | |
| tree | 38d0cabe3c1b72098ceccf8d4b1545d200c20bdd /psycopg/psycopgmodule.c | |
| parent | dbd976bc03106a869c2ccad622749161126693d5 (diff) | |
| download | psycopg2-a9d307140e8366bc16a280f6edba12ea41fa0e1c.tar.gz | |
mx fix to build on win32.
Diffstat (limited to 'psycopg/psycopgmodule.c')
| -rw-r--r-- | psycopg/psycopgmodule.c | 6 |
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"); } |
