diff options
Diffstat (limited to 'psycopg/cursor.h')
| -rw-r--r-- | psycopg/cursor.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/psycopg/cursor.h b/psycopg/cursor.h index 395c561..09ac12a 100644 --- a/psycopg/cursor.h +++ b/psycopg/cursor.h @@ -34,7 +34,8 @@ extern "C" { extern HIDDEN PyTypeObject cursorType; -typedef struct { +/* the typedef is forward-declared in psycopg.h */ +struct cursorObject { PyObject_HEAD connectionObject *conn; /* connection owning the cursor */ @@ -79,7 +80,8 @@ typedef struct { PyObject *weakreflist; /* list of weak references */ -} cursorObject; +}; + /* C-callable functions in cursor_int.c and cursor_ext.c */ HIDDEN PyObject *curs_get_cast(cursorObject *self, PyObject *oid); |
