summaryrefslogtreecommitdiff
path: root/psycopg/microprotocols.h
diff options
context:
space:
mode:
authorFederico Di Gregorio <fog@initd.org>2007-04-10 06:36:18 +0000
committerFederico Di Gregorio <fog@initd.org>2007-04-10 06:36:18 +0000
commite5829292cdecd56e883733aee552d6fe2121c6ac (patch)
treec7d26880bf00e83d28e65f90aaaf5a581a33796c /psycopg/microprotocols.h
parentfadd1a69386ae83ef316f3aee03b2867d8d9fe12 (diff)
downloadpsycopg2-e5829292cdecd56e883733aee552d6fe2121c6ac.tar.gz
Fixed both Python 2.5 and 64 bit problems.
Diffstat (limited to 'psycopg/microprotocols.h')
-rw-r--r--psycopg/microprotocols.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/psycopg/microprotocols.h b/psycopg/microprotocols.h
index 5501a7c..1924df6 100644
--- a/psycopg/microprotocols.h
+++ b/psycopg/microprotocols.h
@@ -22,6 +22,7 @@
#ifndef PSYCOPG_MICROPROTOCOLS_H
#define PSYCOPG_MICROPROTOCOLS_H 1
+#define PY_SSIZE_T_CLEAN
#include <Python.h>
#include "psycopg/connection.h"
#include "psycopg/cursor.h"
@@ -46,15 +47,15 @@ extern PyObject *psyco_adapters;
extern int microprotocols_init(PyObject *dict);
extern int microprotocols_add(
PyTypeObject *type, PyObject *proto, PyObject *cast);
-
+
extern PyObject *microprotocols_adapt(
PyObject *obj, PyObject *proto, PyObject *alt);
extern PyObject *microprotocol_getquoted(
PyObject *obj, connectionObject *conn);
-
+
extern PyObject *
- psyco_microprotocols_adapt(cursorObject *self, PyObject *args);
+ psyco_microprotocols_adapt(cursorObject *self, PyObject *args);
#define psyco_microprotocols_adapt_doc \
"adapt(obj, protocol, alternate) -> object -- adapt obj to given protocol"
-
+
#endif /* !defined(PSYCOPG_MICROPROTOCOLS_H) */