diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-12-25 15:56:36 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-12-25 15:56:36 +0000 |
| commit | dcc48d6c417192dec95aa0d0562d6cc2f3cfa18a (patch) | |
| tree | f64ccb07691d1df7c508403421655d882086b49d /Source/Core/Common/Src/DynamicLibrary.h | |
| parent | 3fd665502e7956ebd97391c0f4cc907d70358968 (diff) | |
just a bunch of random code cleanup i did on the train bored, plus a d3d implementation of NativeVertexFormat which isn't actually used yet.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1658 8ced0084-cf51-0410-be5f-012b33b47a6e
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 }; |
