Subject: | Cygwin/Mingw specific code actually fails to compile on Cygwin. |
The code in the #ifdef __MINGW__ || __CYGWIN__ fails to compile on Cygwin,
but the standard Unix code works fine!
The fix is to simply remove the special-casing of Cygwin.
--- Data-UUID-0.11/UUID.xs.orig 2004-07-24 11:47:07.931862400 +0100
+++ Data-UUID-0.11/UUID.xs 2004-07-24 11:47:39.377078400 +0100
@@ -105,7 +105,7 @@
}
static void get_system_time(uuid_time_t *uuid_time) {
-#if defined __CYGWIN__ || __MINGW32__
+#if defined __MINGW32__
/* ULARGE_INTEGER time; */
LARGE_INTEGER time;
@@ -129,7 +129,7 @@
static void get_random_info(unsigned char seed[16]) {
MD5_CTX c;
-#if defined __CYGWIN__ || __MINGW32__
+#if defined __MINGW32__
typedef struct {
MEMORYSTATUS m;
SYSTEM_INFO s;
@@ -150,7 +150,7 @@
MD5Init(&c);
-#if defined __CYGWIN__ || __MINGW32__
+#if defined __MINGW32__
GlobalMemoryStatus(&r.m);
GetSystemInfo(&r.s);
GetSystemTimeAsFileTime(&r.t);