diff options
Diffstat (limited to 'psycopg/adapter_datetime.c')
-rw-r--r-- | psycopg/adapter_datetime.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/psycopg/adapter_datetime.c b/psycopg/adapter_datetime.c index 08b0cd6..9fd0857 100644 --- a/psycopg/adapter_datetime.c +++ b/psycopg/adapter_datetime.c @@ -23,8 +23,12 @@ * License for more details. */ -#define PY_SSIZE_T_CLEAN -#include <Python.h> +#define PSYCOPG_MODULE +#include "psycopg/psycopg.h" + +#include "psycopg/adapter_datetime.h" +#include "psycopg/microprotocols_proto.h" + #include <structmember.h> #include <stringobject.h> #include <datetime.h> @@ -32,12 +36,6 @@ #include <time.h> #include <string.h> -#define PSYCOPG_MODULE -#include "psycopg/config.h" -#include "psycopg/python.h" -#include "psycopg/psycopg.h" -#include "psycopg/adapter_datetime.h" -#include "psycopg/microprotocols_proto.h" extern HIDDEN PyObject *pyPsycopgTzModule; extern HIDDEN PyObject *pyPsycopgTzLOCAL; |