This commit is contained in:
Weliton Freitas 2018-02-16 22:49:40 +00:00 committed by GitHub
commit 61d7306e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 7 deletions

View File

@ -30,7 +30,6 @@
#ifdef _WIN32
#ifndef __MINGW32__
/* millisecond-precision port of gettimeofday for Win32, taken from
src/port/gettimeofday.c in PostgreSQL core */
@ -61,7 +60,7 @@ gettimeofday(struct timeval * tp, void * tzp)
return 0;
}
/* timeradd missing on MS VC */
/* timeradd missing on MS VC and mingw */
void
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;
}
}
#endif /* !defined(__MINGW32__) */
/* timersub is missing on mingw & MS VC */
void

View File

@ -36,11 +36,8 @@
#ifdef _WIN32
#ifndef __MINGW32__
extern HIDDEN int gettimeofday(struct timeval * tp, void * tzp);
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);
#endif

View File

@ -599,7 +599,7 @@ else:
if not PLATFORM_IS_WINDOWS:
define_macros.append(('PSYCOPG_VERSION', '"' + PSYCOPG_VERSION_EX + '"'))
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'):
have_ssl = int(parser.get('build_ext', 'have_ssl'))