summaryrefslogtreecommitdiff
path: root/Source/cmDynamicLoader.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDynamicLoader.cxx')
-rw-r--r--Source/cmDynamicLoader.cxx19
1 files changed, 9 insertions, 10 deletions
diff --git a/Source/cmDynamicLoader.cxx b/Source/cmDynamicLoader.cxx
index 321faf016e..3422dac9cb 100644
--- a/Source/cmDynamicLoader.cxx
+++ b/Source/cmDynamicLoader.cxx
@@ -90,16 +90,15 @@ int cmDynamicLoader::CloseLibrary(cmLibHandle lib)
void* cmDynamicLoader::GetSymbolAddress(cmLibHandle lib, const char* sym)
{
- void *result=0;
- if(NSIsSymbolNameDefined(sym)){
- cout << sym << " is defined!" << endl;
- NSSymbol symbol= NSLookupAndBindSymbol(sym);
- if(symbol){
- result = NSAddressOfSymbol(symbol);
- }
- }else{
- cout << sym << " is not defined!" << endl;
- }
+ void *result=0;
+ if(NSIsSymbolNameDefined(sym))
+ {
+ NSSymbol symbol= NSLookupAndBindSymbol(sym);
+ if(symbol)
+ {
+ result = NSAddressOfSymbol(symbol);
+ }
+ }
return result;
}