From d6fbc4d69adc228239d3eba4de7268d00c6020f8 Mon Sep 17 00:00:00 2001
From: Mathieu Westphal <mathieu.westphal@kitware.com>
Date: Thu, 27 Feb 2025 13:35:12 +0100
Subject: [PATCH] Windows: Remove cdiCreateUUID on Windows

---
 src/cdi_uuid.h | 2 ++
 src/util.c     | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/src/cdi_uuid.h b/src/cdi_uuid.h
index e55d3a895..cbb307189 100644
--- a/src/cdi_uuid.h
+++ b/src/cdi_uuid.h
@@ -24,7 +24,9 @@ int cdiUUIDIsNull(const unsigned char uuid[])
   return isNull;
 }
 
+#ifndef _WIN32
 void cdiCreateUUID(unsigned char uuid[CDI_UUID_SIZE]);
+#endif
 
 int cdiUUID2Str(const unsigned char uuid[], char uuidstr[]);
 int cdiStr2UUID(const char *uuidstr, unsigned char uuid[]);
diff --git a/src/util.c b/src/util.c
index 7eada35c9..df97d6a0c 100644
--- a/src/util.c
+++ b/src/util.c
@@ -100,6 +100,7 @@ cdiUnescapeSpaces(const char *string, const char **outStringEnd)
   return result;
 }
 
+#ifndef _WIN32
 #if defined(HAVE_DECL_UUID_GENERATE) && defined(HAVE_UUID_UUID_H)
 #ifdef HAVE_SYS_TIME_H
 #include <sys/time.h>
@@ -252,6 +253,7 @@ cdiCreateUUID(unsigned char *uuid)
 #endif
 }
 #endif
+#endif
 
 /*
  * Local Variables:
-- 
GitLab