diff options
| author | James Henstridge <james@jamesh.id.au> | 2008-01-21 05:54:01 +0000 |
|---|---|---|
| committer | James Henstridge <james@jamesh.id.au> | 2008-01-21 05:54:01 +0000 |
| commit | 864d107325fb616eaaf873ad20c66aa77b648a5c (patch) | |
| tree | e60ad253db0b909d13b3da7800e9670ac54de980 /psycopg/microprotocols_proto.h | |
| parent | 3265dd172d259201d90666eff17b3276e798a270 (diff) | |
| download | psycopg2-864d107325fb616eaaf873ad20c66aa77b648a5c.tar.gz | |
* psycypg/*.h: apply HIDDEN to all global variables and functions
that should not be exported from the module. This results in a 5%
reduction in code size and shortens the dynamic symbol table.
* psycopg/config.h: If GCC >= 4.0 is installed, define the HIDDEN
symbol to apply the "hidden" visibility attribute.
Diffstat (limited to 'psycopg/microprotocols_proto.h')
| -rw-r--r-- | psycopg/microprotocols_proto.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/psycopg/microprotocols_proto.h b/psycopg/microprotocols_proto.h index 45de4cc..4f7e815 100644 --- a/psycopg/microprotocols_proto.h +++ b/psycopg/microprotocols_proto.h @@ -26,11 +26,13 @@ #include <Python.h> #include <libpq-fe.h> +#include "psycopg/config.h" + #ifdef __cplusplus extern "C" { #endif -extern PyTypeObject isqlquoteType; +extern HIDDEN PyTypeObject isqlquoteType; typedef struct { PyObject_HEAD |
