diff options
Diffstat (limited to 'Source/Core/Common/Src/DynamicLibrary.h')
| -rw-r--r-- | Source/Core/Common/Src/DynamicLibrary.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/Source/Core/Common/Src/DynamicLibrary.h b/Source/Core/Common/Src/DynamicLibrary.h index 86718b4ce2..5dd47b8575 100644 --- a/Source/Core/Common/Src/DynamicLibrary.h +++ b/Source/Core/Common/Src/DynamicLibrary.h @@ -24,23 +24,23 @@ #include <string> +// Abstracts the (few) differences between dynamically loading DLLs under Windows +// and .so / .dylib under Linux/MacOSX. class DynamicLibrary { - public: - - DynamicLibrary(); - int Load(const char* filename); - int Unload(); - void* Get(const char* funcname) const; - - bool IsLoaded() const {return(library != 0);} - - private: - std::string library_file; +public: + DynamicLibrary(); + int Load(const char *filename); + int Unload(); + void *Get(const char *funcname) const; + bool IsLoaded() const { return library != 0; } + +private: + std::string library_file; #ifdef _WIN32 - HINSTANCE library; + HINSTANCE library; #else - void* library; + void *library; #endif }; |
