summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/DynamicLoader.cxx
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-08 14:16:54 (GMT)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2006-03-08 14:16:54 (GMT)
commitd91bd3dbd37e645f756191799a9521284e81c1b2 (patch)
tree7c17fa56bf80ba1d429456072eefa2f1b787faf2 /Source/kwsys/DynamicLoader.cxx
parentcdc3c9d18bdfb86600b2e39bdc90ecd32c9cb654 (diff)
downloadCMake-d91bd3dbd37e645f756191799a9521284e81c1b2.zip
CMake-d91bd3dbd37e645f756191799a9521284e81c1b2.tar.gz
CMake-d91bd3dbd37e645f756191799a9521284e81c1b2.tar.bz2
BUG: Including file within a namespace{} is dangerous(unless symbols are within an extern C). Also update documentation about special case for MacOSX
Diffstat (limited to 'Source/kwsys/DynamicLoader.cxx')
-rw-r--r--Source/kwsys/DynamicLoader.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/kwsys/DynamicLoader.cxx b/Source/kwsys/DynamicLoader.cxx
index bd6291a..9bbf07e 100644
--- a/Source/kwsys/DynamicLoader.cxx
+++ b/Source/kwsys/DynamicLoader.cxx
@@ -25,9 +25,9 @@
// This file is actually 3 different implementations.
// 1. HP machines which uses shl_load
-// 2. Power PC MAC which uses GetSharedLibrary
+// 2. Mac OS X 10.2.x and earlier which uses NSLinkModule
// 3. Windows which uses LoadLibrary
-// 4. Most unix systems which use dlopen (default )
+// 4. Most unix systems (including Mac OS X 10.3 and later) which use dlopen (default)
// Each part of the ifdef contains a complete implementation for
// the static methods of DynamicLoader.
@@ -132,7 +132,7 @@ LibHandle DynamicLoader::OpenLibrary(const char* libname )
{
NSObjectFileImageReturnCode rc;
NSObjectFileImage image = 0;
-
+
rc = NSCreateObjectFileImageFromFile(libname, &image);
if(!image)
{
@@ -150,7 +150,7 @@ int DynamicLoader::CloseLibrary( LibHandle lib)
//----------------------------------------------------------------------------
DynamicLoaderFunction DynamicLoader::GetSymbolAddress(LibHandle /* lib */, const char* sym)
-{
+{
void *result=0;
if(NSIsSymbolNameDefined(sym))
{