mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-23 09:23:43 +03:00
mx fix to build on win32.
This commit is contained in:
parent
dbd976bc03
commit
a9d307140e
|
@ -1,5 +1,8 @@
|
||||||
2006-09-01 Federico Di Gregorio <fog@initd.org>
|
2006-09-01 Federico Di Gregorio <fog@initd.org>
|
||||||
|
|
||||||
|
* psycopg/adapter_mxdatetime.c, psycopg/psycopgmodule.c: fixed last
|
||||||
|
problem with non-constant initializers (merge from 2.0).
|
||||||
|
|
||||||
* psycopg/connection_type.c: merged in double mutex destroy patch
|
* psycopg/connection_type.c: merged in double mutex destroy patch
|
||||||
from Joerg Sonnenberger.
|
from Joerg Sonnenberger.
|
||||||
|
|
||||||
|
|
|
@ -258,7 +258,7 @@ PyTypeObject mxdatetimeType = {
|
||||||
0, /*tp_dictoffset*/
|
0, /*tp_dictoffset*/
|
||||||
|
|
||||||
mxdatetime_init, /*tp_init*/
|
mxdatetime_init, /*tp_init*/
|
||||||
PyType_GenericAlloc, /*tp_alloc*/
|
0, /*tp_alloc*/
|
||||||
mxdatetime_new, /*tp_new*/
|
mxdatetime_new, /*tp_new*/
|
||||||
(freefunc)mxdatetime_del, /*tp_free Low-level free-memory routine */
|
(freefunc)mxdatetime_del, /*tp_free Low-level free-memory routine */
|
||||||
0, /*tp_is_gc For PyObject_IS_GC */
|
0, /*tp_is_gc For PyObject_IS_GC */
|
||||||
|
|
|
@ -680,6 +680,10 @@ init_psycopg(void)
|
||||||
#ifdef HAVE_PYDATETIME
|
#ifdef HAVE_PYDATETIME
|
||||||
pydatetimeType.tp_alloc = PyType_GenericAlloc;
|
pydatetimeType.tp_alloc = PyType_GenericAlloc;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef HAVE_MXDATETIME
|
||||||
|
mxdatetimeType.tp_alloc = PyType_GenericAlloc;
|
||||||
|
#endif
|
||||||
|
|
||||||
Dprintf("initpsycopg: module initialization complete");
|
Dprintf("initpsycopg: module initialization complete");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user