Cygwin/X: should also use GetTickCount(), just like Xming
Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
This commit is contained in:
parent
7f781e780e
commit
656f92e247
|
@ -56,6 +56,11 @@ OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
#ifdef __CYGWIN__
|
#ifdef __CYGWIN__
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <signal.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
|
#endif
|
||||||
|
|
||||||
#if defined(WIN32) && !defined(__CYGWIN__)
|
#if defined(WIN32) && !defined(__CYGWIN__)
|
||||||
|
@ -422,7 +427,7 @@ GiveUp(int sig)
|
||||||
errno = olderrno;
|
errno = olderrno;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined WIN32 && defined __MINGW32__
|
#if (defined WIN32 && defined __MINGW32__) || defined(__CYGWIN__)
|
||||||
CARD32
|
CARD32
|
||||||
GetTimeInMillis (void)
|
GetTimeInMillis (void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue