projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
new fortune
[feisty_meow.git]
/
nucleus
/
tools
/
simple_utilities
/
create_guid.cpp
diff --git
a/nucleus/tools/simple_utilities/create_guid.cpp
b/nucleus/tools/simple_utilities/create_guid.cpp
index e359804e9cc201dc587e5b2e21f9f45261f959c6..c473c778fc06f90e6f77958e770aab11f4af6f4b 100644
(file)
--- a/
nucleus/tools/simple_utilities/create_guid.cpp
+++ b/
nucleus/tools/simple_utilities/create_guid.cpp
@@
-28,6
+28,11
@@
#include <textual/string_manipulation.h>
#ifdef __WIN32__
#include <textual/string_manipulation.h>
#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 <comdef.h>
#endif
#include <comdef.h>
#endif
@@
-59,8
+64,7
@@
int create_guid::execute()
{
FUNCDEF("execute");
SETUP_CONSOLE_LOGGER;
{
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 \
// 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());
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;
GUID guid;
CoCreateGuid(&guid);
const int BUFFER_SIZE = 1024;