summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-06-19 16:57:53 +0000
committerMike Buland <eichlan@xagasoft.com>2012-06-19 16:57:53 +0000
commitec105b8379b44d7192001e55f87fd1d7aa17532a (patch)
tree0dc9b60e7be31e7965feb8aa5e9f5952a3c0b6d9
parent08a323575d754db4a0cb2432688d83197e1147bf (diff)
downloadlibbu++-ec105b8379b44d7192001e55f87fd1d7aa17532a.tar.gz
libbu++-ec105b8379b44d7192001e55f87fd1d7aa17532a.tar.bz2
libbu++-ec105b8379b44d7192001e55f87fd1d7aa17532a.tar.xz
libbu++-ec105b8379b44d7192001e55f87fd1d7aa17532a.zip
Changed the macro tests around, it wasn't working on win32...because I did it
wrong :-P
-rw-r--r--src/unstable/uuid.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/unstable/uuid.cpp b/src/unstable/uuid.cpp
index 4ac90a5..c76bb15 100644
--- a/src/unstable/uuid.cpp
+++ b/src/unstable/uuid.cpp
@@ -82,14 +82,14 @@ void Bu::Uuid::clear()
82 82
83Bu::Uuid Bu::Uuid::gen() 83Bu::Uuid Bu::Uuid::gen()
84{ 84{
85#ifdef linux 85#if defined(linux)
86 Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read ); 86 Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read );
87 char dat[36]; 87 char dat[36];
88 fIn.read( dat, 36 ); 88 fIn.read( dat, 36 );
89 Uuid id; 89 Uuid id;
90 id.set( dat ); 90 id.set( dat );
91 return id; 91 return id;
92#elif WIN32 92#elif defined(WIN32)
93 UUID uuid; 93 UUID uuid;
94 UuidCreate( &uuid ); 94 UuidCreate( &uuid );
95 Uuid id; 95 Uuid id;