From bcef809e612177c2bcb7ca3f8682ea96d38c4cdc Mon Sep 17 00:00:00 2001 From: Cameron Cawley Date: Sun, 31 Mar 2019 19:07:40 +0100 Subject: WINCE: Fix compilation --- backends/plugins/win32/win32-provider.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'backends/plugins/win32') diff --git a/backends/plugins/win32/win32-provider.cpp b/backends/plugins/win32/win32-provider.cpp index ae8a5f0472..c97feb4806 100644 --- a/backends/plugins/win32/win32-provider.cpp +++ b/backends/plugins/win32/win32-provider.cpp @@ -36,7 +36,7 @@ class Win32Plugin : public DynamicPlugin { private: static const TCHAR* toUnicode(const char *x) { - #ifndef _WIN32_WCE + #ifndef UNICODE return (const TCHAR *)x; #else static TCHAR unicodeString[MAX_PATH]; @@ -50,11 +50,7 @@ protected: void *_dlHandle; virtual VoidFunc findSymbol(const char *symbol) { - #ifndef _WIN32_WCE - FARPROC func = GetProcAddress((HMODULE)_dlHandle, symbol); - #else FARPROC func = GetProcAddress((HMODULE)_dlHandle, toUnicode(symbol)); - #endif if (!func) debug("Failed loading symbol '%s' from plugin '%s'", symbol, _filename.c_str()); @@ -67,11 +63,7 @@ public: bool loadPlugin() { assert(!_dlHandle); -#ifndef _WIN32_WCE - _dlHandle = LoadLibrary(_filename.c_str()); -#else _dlHandle = LoadLibrary(toUnicode(_filename.c_str())); -#endif if (!_dlHandle) { debug("Failed loading plugin '%s' (error code %d)", _filename.c_str(), (int32) GetLastError()); -- cgit v1.2.3