@@ -27,11 +27,11 @@ #import "OFString.h" #import "OFSystemInfo.h" #import "OFInitializationFailedException.h" -#ifdef _WIN32 +#ifdef OF_WINDOWS # define dlsym(handle, symbol) GetProcAddress(handle, symbol) # define dlclose(handle) FreeLibrary(handle) #endif typedef OFPlugin* (*init_plugin_t)(void); @@ -44,11 +44,11 @@ init_plugin_t initPlugin; OFPlugin *plugin; path = [path stringByAppendingString: @PLUGIN_SUFFIX]; -#ifndef _WIN32 +#ifndef OF_WINDOWS if ((handle = dlopen([path cStringWithEncoding: [OFSystemInfo native8BitEncoding]], RTLD_LAZY)) == NULL) #else if ((handle = LoadLibraryW([path UTF16String])) == NULL) #endif