From 359b195c7844209086e542c6695ecff3b0d928a6 Mon Sep 17 00:00:00 2001 From: EvanBalster Date: Sun, 27 Dec 2020 14:36:17 -0800 Subject: [PATCH] uuid_time_generator disabled, eliminating Windows dependency; #define UUID_TIME_GENERATOR to re-enable --- include/uuid.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uuid.h b/include/uuid.h index d5dd65d..b5f25e8 100644 --- a/include/uuid.h +++ b/include/uuid.h @@ -17,6 +17,7 @@ #include #include +#if defined(UUID_TIME_GENERATOR) || defined(UUID_SYSTEM_GENERATOR) #ifdef _WIN32 #ifndef WIN32_LEAN_AND_MEAN #define WIN32_LEAN_AND_MEAN @@ -46,6 +47,7 @@ #include #endif +#endif #endif namespace uuids @@ -843,6 +845,7 @@ namespace uuids detail::sha1 hasher; }; +#ifdef UUID_TIME_GENERATOR // !!! DO NOT USE THIS IN PRODUCTION // this implementation is unreliable for good uuids class uuid_time_generator @@ -924,6 +927,7 @@ namespace uuids return {}; } }; +#endif } namespace std