63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef OF_WINDOWS
_handle = dlopen(
[path cStringWithEncoding: [OFLocale encoding]], RTLD_LAZY);
#else
if ([OFSystemInfo isWindowsNT])
_handle = LoadLibraryW(path.UTF16String);
else
_handle LoadLibraryA(
[path cStringWithEncoding: [OFLocale encoding]]);
#endif
if (_handle == NULL) {
#ifndef OF_WINDOWS
OFString *error = [OFString
stringWithCString: dlerror()
|
|
|
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
#ifndef OF_WINDOWS
_handle = dlopen(
[path cStringWithEncoding: [OFLocale encoding]], RTLD_LAZY);
#else
if ([OFSystemInfo isWindowsNT])
_handle = LoadLibraryW(path.UTF16String);
else
_handle = LoadLibraryA(
[path cStringWithEncoding: [OFLocale encoding]]);
#endif
if (_handle == NULL) {
#ifndef OF_WINDOWS
OFString *error = [OFString
stringWithCString: dlerror()
|