summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/DynamicLoader.hxx.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-16 16:21:01 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-03-16 16:21:01 (GMT)
commit974e9d4667100d6047fffe66f9fe28782c05455c (patch)
tree4d0e1553273273687d2229c6cf79b3a86826466a /Source/kwsys/DynamicLoader.hxx.in
parent8e137c54d6938b2f7dd3f6436262ea4907966084 (diff)
downloadCMake-974e9d4667100d6047fffe66f9fe28782c05455c.zip
CMake-974e9d4667100d6047fffe66f9fe28782c05455c.tar.gz
CMake-974e9d4667100d6047fffe66f9fe28782c05455c.tar.bz2
COMP: Fix problem with namespace
Diffstat (limited to 'Source/kwsys/DynamicLoader.hxx.in')
-rw-r--r--Source/kwsys/DynamicLoader.hxx.in15
1 files changed, 11 insertions, 4 deletions
diff --git a/Source/kwsys/DynamicLoader.hxx.in b/Source/kwsys/DynamicLoader.hxx.in
index 29d213e..5d3d048 100644
--- a/Source/kwsys/DynamicLoader.hxx.in
+++ b/Source/kwsys/DynamicLoader.hxx.in
@@ -16,6 +16,17 @@
#include <@KWSYS_NAMESPACE@/Configure.h>
+#if defined(__hpux)
+ #include <dl.h>
+#elif defined(_WIN32)
+ #include <windows.h>
+#elif defined(__APPLE__)
+ #include <AvailabilityMacros.h>
+ #if MAC_OS_X_VERSION_MIN_REQUIRED < 1030
+ #include <mach-o/dyld.h>
+ #endif
+#endif
+
namespace @KWSYS_NAMESPACE@
{
/** \class DynamicLoader
@@ -42,15 +53,11 @@ public:
// Ugly stuff for library handles
// They are different on several different OS's
#if defined(__hpux)
- #include <dl.h>
typedef shl_t LibraryHandle;
#elif defined(_WIN32)
- #include <windows.h>
typedef HMODULE LibraryHandle;
#elif defined(__APPLE__)
- #include <AvailabilityMacros.h>
#if MAC_OS_X_VERSION_MIN_REQUIRED < 1030
- #include <mach-o/dyld.h>
typedef NSModule LibraryHandle;
#else
typedef void* LibraryHandle;