summaryrefslogtreecommitdiff
path: root/psycopg/win32_support.h
diff options
context:
space:
mode:
authorOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-06-04 11:00:08 +0200
committerOleksandr Shulgin <oleksandr.shulgin@zalando.de>2015-06-04 11:00:08 +0200
commit50df864f8c63144bad281a1de1d6d38d4a06d4aa (patch)
treec5530a447c5e956edaad821c30f83701535cc446 /psycopg/win32_support.h
parentf14521f8cb567c98814d392ba7ec196b4a7df77c (diff)
downloadpsycopg2-50df864f8c63144bad281a1de1d6d38d4a06d4aa.tar.gz
Add timersub for Win32. Fix gettimeofday on MinGW.
Diffstat (limited to 'psycopg/win32_support.h')
-rw-r--r--psycopg/win32_support.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/psycopg/win32_support.h b/psycopg/win32_support.h
index c657731..be963df 100644
--- a/psycopg/win32_support.h
+++ b/psycopg/win32_support.h
@@ -30,7 +30,11 @@
#include <sys/time.h>
#ifdef _WIN32
+#ifndef __MINGW32__
HIDDEN int gettimeofday(struct timeval * tp, struct timezone * tzp);
#endif
+HIDDEN void timersub(struct timeval *a, struct timeval *b, struct timeval *c);
+#endif
+
#endif /* !defined(PSYCOPG_WIN32_SUPPORT_H) */