X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=nucleus%2Ftools%2Fsimple_utilities%2Fcreate_guid.cpp;h=c473c778fc06f90e6f77958e770aab11f4af6f4b;hb=83f4dcfb4d75d706530a150647af7ac8fb33e2cf;hp=942925de60ba3a56da8e914be232fee34808a7b3;hpb=ab4b5d4fed894a8ea469252d393005eec1221d3e;p=feisty_meow.git diff --git a/nucleus/tools/simple_utilities/create_guid.cpp b/nucleus/tools/simple_utilities/create_guid.cpp index 942925de..c473c778 100644 --- a/nucleus/tools/simple_utilities/create_guid.cpp +++ b/nucleus/tools/simple_utilities/create_guid.cpp @@ -27,7 +27,12 @@ #include #include -#ifdef _MSC_VER +#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; -#if defined(__UNIX__) || defined(__GNU_WINDOWS__) - +#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 (_MSC_VER) +#elif defined (DO_GUIDS) GUID guid; CoCreateGuid(&guid); const int BUFFER_SIZE = 1024;