diff options
| author | Andrew Stitcher <astitcher@apache.org> | 2009-05-05 22:13:18 +0000 |
|---|---|---|
| committer | Andrew Stitcher <astitcher@apache.org> | 2009-05-05 22:13:18 +0000 |
| commit | 8da2392961daf55549b57a8c576f66df206f2c69 (patch) | |
| tree | c3c9bfd3743b2e71c9154d71e909df66138c41d3 /cpp/src/qpid/sys | |
| parent | 6449200008e62c315abe8e2630ae46eb00597003 (diff) | |
| download | qpid-python-8da2392961daf55549b57a8c576f66df206f2c69.tar.gz | |
Hack around the namespace pollution in QPID-1737
Hack around simultaneous import and definition of ManagementAgent::Singleton in qpidbroker
Make ACL plugin optional (default off on Windows currently)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@771989 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/sys')
| -rwxr-xr-x | cpp/src/qpid/sys/windows/Condition.h | 1 | ||||
| -rwxr-xr-x | cpp/src/qpid/sys/windows/Mutex.h | 1 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/windows/uuid.cpp | 5 | ||||
| -rw-r--r-- | cpp/src/qpid/sys/windows/uuid.h | 6 |
4 files changed, 8 insertions, 5 deletions
diff --git a/cpp/src/qpid/sys/windows/Condition.h b/cpp/src/qpid/sys/windows/Condition.h index 979fae9b0a..c31f7b4823 100755 --- a/cpp/src/qpid/sys/windows/Condition.h +++ b/cpp/src/qpid/sys/windows/Condition.h @@ -30,6 +30,7 @@ #include <boost/thread/condition.hpp> #include <boost/thread/thread_time.hpp> #include <windows.h> +#undef STATUS_INVALID_PARAMETER // Hack for windows.h namespace pollution namespace qpid { namespace sys { diff --git a/cpp/src/qpid/sys/windows/Mutex.h b/cpp/src/qpid/sys/windows/Mutex.h index 08de0712b9..b8d34de6d1 100755 --- a/cpp/src/qpid/sys/windows/Mutex.h +++ b/cpp/src/qpid/sys/windows/Mutex.h @@ -31,6 +31,7 @@ #include <boost/thread/shared_mutex.hpp> #include <boost/thread/thread_time.hpp> #include <boost/thread/tss.hpp> +#undef STATUS_INVALID_PARAMETER // Hack for windows.h namespace pollution namespace qpid { namespace sys { diff --git a/cpp/src/qpid/sys/windows/uuid.cpp b/cpp/src/qpid/sys/windows/uuid.cpp index 92f60e04b1..4d8184c703 100644 --- a/cpp/src/qpid/sys/windows/uuid.cpp +++ b/cpp/src/qpid/sys/windows/uuid.cpp @@ -19,6 +19,11 @@ * */ +#include <Rpc.h> +#ifdef uuid_t /* Done in rpcdce.h */ +# undef uuid_t +#endif + #include "uuid.h" #include <string.h> diff --git a/cpp/src/qpid/sys/windows/uuid.h b/cpp/src/qpid/sys/windows/uuid.h index 7d003c3739..c79abe95c6 100644 --- a/cpp/src/qpid/sys/windows/uuid.h +++ b/cpp/src/qpid/sys/windows/uuid.h @@ -22,13 +22,9 @@ * */ -#include <Rpc.h> #include "qpid/CommonImportExport.h" - -#ifdef uuid_t /* Done in rpcdce.h */ -# undef uuid_t -#endif #include <qpid/sys/IntegerTypes.h> + namespace qpid { namespace sys { const size_t UuidSize = 16; }} typedef uint8_t uuid_t[qpid::sys::UuidSize]; |
