X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Ftools%2Fsimple_utilities%2Fcreate_guid.cpp;h=c473c778fc06f90e6f77958e770aab11f4af6f4b;hb=6f4f86051d7e4ad4755152503098bbb3888e4aad;hp=e359804e9cc201dc587e5b2e21f9f45261f959c6;hpb=4c3c1ebcea4f605039bb33c7233d413a34fc5305;p=feisty_meow.git diff --git a/nucleus/tools/simple_utilities/create_guid.cpp b/nucleus/tools/simple_utilities/create_guid.cpp index e359804e..c473c778 100644 --- a/nucleus/tools/simple_utilities/create_guid.cpp +++ b/nucleus/tools/simple_utilities/create_guid.cpp @@ -28,6 +28,11 @@ #include #ifdef __WIN32__ +// #define DO_GUIDS +//hmmm: currently disabled due to problems compiling in cygwin using this header; complains about new.h being missing. +#endif + +#ifdef DO_GUIDS #include #endif @@ -59,8 +64,7 @@ int create_guid::execute() { FUNCDEF("execute"); SETUP_CONSOLE_LOGGER; -#ifdef __UNIX__ - +#ifndef DO_GUIDS // this is completely bogus for the time being. it just produces a random // number rather than a guid. #define add_random \ @@ -77,7 +81,7 @@ int create_guid::execute() for (int i = 0; i < 8; i++) add_random; faux_guid += "}"; BASE_LOG(faux_guid.lower()); -#elif defined (__WIN32__) +#elif defined (DO_GUIDS) GUID guid; CoCreateGuid(&guid); const int BUFFER_SIZE = 1024;