mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-26 10:53:44 +03:00
Dropped HAVE_PQFREEMEM flag
It was necessary before PG 7.4, in versions which have long been unsupported.
This commit is contained in:
parent
68a4308c3d
commit
1d729ab40e
|
@ -152,11 +152,6 @@ static double round(double num)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* postgresql < 7.4 does not have PQfreemem */
|
|
||||||
#ifndef HAVE_PQFREEMEM
|
|
||||||
#define PQfreemem free
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* resolve missing isinf() function for Solaris */
|
/* resolve missing isinf() function for Solaris */
|
||||||
#if defined (__SVR4) && defined (__sun)
|
#if defined (__SVR4) && defined (__sun)
|
||||||
#include <ieeefp.h>
|
#include <ieeefp.h>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[build_ext]
|
[build_ext]
|
||||||
define=HAVE_PQFREEMEM
|
define=
|
||||||
|
|
||||||
# PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower)
|
# PSYCOPG_DISPLAY_SIZE enable display size calculation (a little slower)
|
||||||
# HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4
|
# HAVE_PQFREEMEM should be defined on PostgreSQL >= 7.4
|
||||||
|
|
3
setup.py
3
setup.py
|
@ -538,7 +538,8 @@ else:
|
||||||
# when called e.g. with "pip -e git+url'. This results in declarations
|
# when called e.g. with "pip -e git+url'. This results in declarations
|
||||||
# duplicate on the commandline, which I hope is not a problem.
|
# duplicate on the commandline, which I hope is not a problem.
|
||||||
for define in parser.get('build_ext', 'define').split(','):
|
for define in parser.get('build_ext', 'define').split(','):
|
||||||
define_macros.append((define, '1'))
|
if define:
|
||||||
|
define_macros.append((define, '1'))
|
||||||
|
|
||||||
# build the extension
|
# build the extension
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user