Dropped HAVE_PQFREEMEM flag

It was necessary before PG 7.4, in versions which have long been unsupported.
This commit is contained in:
Daniele Varrazzo 2014-08-24 01:43:12 +01:00
parent 68a4308c3d
commit 1d729ab40e
3 changed files with 3 additions and 7 deletions

View File

@ -152,11 +152,6 @@ static double round(double num)
}
#endif
/* postgresql < 7.4 does not have PQfreemem */
#ifndef HAVE_PQFREEMEM
#define PQfreemem free
#endif
/* resolve missing isinf() function for Solaris */
#if defined (__SVR4) && defined (__sun)
#include <ieeefp.h>

View File

@ -1,5 +1,5 @@
[build_ext]
define=HAVE_PQFREEMEM
define=
# PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower)
# HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4

View File

@ -538,7 +538,8 @@ else:
# when called e.g. with "pip -e git+url'. This results in declarations
# duplicate on the commandline, which I hope is not a problem.
for define in parser.get('build_ext', 'define').split(','):
define_macros.append((define, '1'))
if define:
define_macros.append((define, '1'))
# build the extension