diff options
Diffstat (limited to 'Source/cmDynamicLoader.h')
-rw-r--r-- | Source/cmDynamicLoader.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/cmDynamicLoader.h b/Source/cmDynamicLoader.h index 7c49f90..3938528 100644 --- a/Source/cmDynamicLoader.h +++ b/Source/cmDynamicLoader.h @@ -37,16 +37,8 @@ typedef void* cmLibHandle; #endif -// C++ Does not allow casts from pointer-to-data types to -// pointer-to-function types. However, the return type from each -// platform's symbol lookup implementation is void*. We need to hide -// the cast from void* to a pointer-to-function type in C code. The -// implementation of cmDynamicLoader::GetSymbolAddress simply calls a -// C-based implementation in cmDynamicLoaderC.c. This -// cmDynamicLoaderFunction type is the return type of -// cmDynamicLoader::GetSymbolAddress and can be cast to any other -// pointer-to-function type safely in C++. -extern "C" { typedef void (*cmDynamicLoaderFunction)(); } +// Return type from cmDynamicLoader::GetSymbolAddress. +typedef void (*cmDynamicLoaderFunction)(); class cmDynamicLoader { |