summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon TURNEY <jon.turney@dronecode.org.uk>2008-11-02 20:17:02 +0000
committerJon TURNEY <jon.turney@dronecode.org.uk>2009-01-19 14:46:48 +0000
commit656f92e247f2f257105daf1e0e6998e1b3d10eba (patch)
tree30bb10a375b2bad6f4a6e97b6bfca5f9b234ed49
parent7f781e780ee2b261c5cb688a8e6c5dc1a53bdb6f (diff)
Cygwin/X: should also use GetTickCount(), just like Xming
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
-rw-r--r--os/utils.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/os/utils.c b/os/utils.c
index b630d9d9e..55f8a9850 100644
--- a/os/utils.c
+++ b/os/utils.c
@@ -56,6 +56,11 @@ OR PERFORMANCE OF THIS SOFTWARE.
#ifdef __CYGWIN__
#include <stdlib.h>
#include <signal.h>
+/*
+ Sigh... We really need a prototype for this to know it is stdcall,
+ but #include-ing <windows.h> here is not a good idea...
+*/
+__stdcall unsigned long GetTickCount(void);
#endif
#if defined(WIN32) && !defined(__CYGWIN__)
@@ -422,7 +427,7 @@ GiveUp(int sig)
errno = olderrno;
}
-#if defined WIN32 && defined __MINGW32__
+#if (defined WIN32 && defined __MINGW32__) || defined(__CYGWIN__)
CARD32
GetTimeInMillis (void)
{