mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-02 19:30:09 +03:00
Merge 13d352fb18
into df952c149d
This commit is contained in:
commit
61d7306e3b
|
@ -30,7 +30,6 @@
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
|
|
||||||
#ifndef __MINGW32__
|
|
||||||
/* millisecond-precision port of gettimeofday for Win32, taken from
|
/* millisecond-precision port of gettimeofday for Win32, taken from
|
||||||
src/port/gettimeofday.c in PostgreSQL core */
|
src/port/gettimeofday.c in PostgreSQL core */
|
||||||
|
|
||||||
|
@ -61,7 +60,7 @@ gettimeofday(struct timeval * tp, void * tzp)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* timeradd missing on MS VC */
|
/* timeradd missing on MS VC and mingw */
|
||||||
void
|
void
|
||||||
timeradd(struct timeval *a, struct timeval *b, struct timeval *c)
|
timeradd(struct timeval *a, struct timeval *b, struct timeval *c)
|
||||||
{
|
{
|
||||||
|
@ -72,7 +71,6 @@ timeradd(struct timeval *a, struct timeval *b, struct timeval *c)
|
||||||
c->tv_sec += 1;
|
c->tv_sec += 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif /* !defined(__MINGW32__) */
|
|
||||||
|
|
||||||
/* timersub is missing on mingw & MS VC */
|
/* timersub is missing on mingw & MS VC */
|
||||||
void
|
void
|
||||||
|
|
|
@ -36,11 +36,8 @@
|
||||||
|
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#ifndef __MINGW32__
|
|
||||||
extern HIDDEN int gettimeofday(struct timeval * tp, void * tzp);
|
extern HIDDEN int gettimeofday(struct timeval * tp, void * tzp);
|
||||||
extern HIDDEN void timeradd(struct timeval *a, struct timeval *b, struct timeval *c);
|
extern HIDDEN void timeradd(struct timeval *a, struct timeval *b, struct timeval *c);
|
||||||
#elif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
extern HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c);
|
extern HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c);
|
||||||
#endif
|
#endif
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -599,7 +599,7 @@ else:
|
||||||
if not PLATFORM_IS_WINDOWS:
|
if not PLATFORM_IS_WINDOWS:
|
||||||
define_macros.append(('PSYCOPG_VERSION', '"' + PSYCOPG_VERSION_EX + '"'))
|
define_macros.append(('PSYCOPG_VERSION', '"' + PSYCOPG_VERSION_EX + '"'))
|
||||||
else:
|
else:
|
||||||
define_macros.append(('PSYCOPG_VERSION', '\\"' + PSYCOPG_VERSION_EX + '\\"'))
|
define_macros.append(('PSYCOPG_VERSION', '\"' + PSYCOPG_VERSION_EX + '\"'))
|
||||||
|
|
||||||
if parser.has_option('build_ext', 'have_ssl'):
|
if parser.has_option('build_ext', 'have_ssl'):
|
||||||
have_ssl = int(parser.get('build_ext', 'have_ssl'))
|
have_ssl = int(parser.get('build_ext', 'have_ssl'))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user