summaryrefslogtreecommitdiff
path: root/src/uuid.hpp
diff options
context:
space:
mode:
authormalosek <malosek@fastmq.com>2009-10-05 15:06:40 +0200
committermalosek <malosek@fastmq.com>2009-10-05 15:06:40 +0200
commit3daeff2786ce1d6d8e58f0ad15e693f2c48c94f9 (patch)
tree9a1730d803698ed461d60e99eed296bd364268af /src/uuid.hpp
parentde2e439a52e93a4cb17a19e9ef9cadfd5ebf2cea (diff)
mingw port
Diffstat (limited to 'src/uuid.hpp')
-rw-r--r--src/uuid.hpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/uuid.hpp b/src/uuid.hpp
index 81e41a3..e4716de 100644
--- a/src/uuid.hpp
+++ b/src/uuid.hpp
@@ -27,6 +27,8 @@
#include <uuid.h>
#elif defined ZMQ_HAVE_LINUX || defined ZMQ_HAVE_SOLARIS || defined ZMQ_HAVE_OSX
#include <uuid/uuid.h>
+#elif defined ZMQ_HAVE_WINDOWS
+#include <Rpc.h>
#endif
namespace zmq
@@ -53,7 +55,10 @@ namespace zmq
enum { uuid_string_len = 36 };
#if defined ZMQ_HAVE_WINDOWS
- ::UUID uuid;
+#ifdef ZMQ_HAVE_MINGW32
+ typedef unsigned char* RPC_CSTR;
+#endif
+ ::UUID uuid;
RPC_CSTR uuid_str;
#elif defined ZMQ_HAVE_FREEBSD
::uuid_t uuid;