From ec105b8379b44d7192001e55f87fd1d7aa17532a Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Tue, 19 Jun 2012 16:57:53 +0000 Subject: Changed the macro tests around, it wasn't working on win32...because I did it wrong :-P --- src/unstable/uuid.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/unstable') 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() Bu::Uuid Bu::Uuid::gen() { -#ifdef linux +#if defined(linux) Bu::File fIn( "/proc/sys/kernel/random/uuid", Bu::File::Read ); char dat[36]; fIn.read( dat, 36 ); Uuid id; id.set( dat ); return id; -#elif WIN32 +#elif defined(WIN32) UUID uuid; UuidCreate( &uuid ); Uuid id; -- cgit v1.2.3