mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-29 13:32:33 +00:00
Fix MINGW compilation errors
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19190 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
582a23c686
commit
c18671cdcd
@ -111,7 +111,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
||||
E = OpenedHandles.end(); I != E; ++I) {
|
||||
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
return (void *) ptr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -119,7 +119,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
||||
|
||||
void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) {
|
||||
assert(handle != 0 && "Invalid DynamicLibrary handle");
|
||||
return GetProcAddress((HMODULE)handle, symbolName);
|
||||
return (void *) GetProcAddress((HMODULE)handle, symbolName);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
||||
E = OpenedHandles.end(); I != E; ++I) {
|
||||
FARPROC ptr = GetProcAddress((HMODULE)*I, symbolName);
|
||||
if (ptr)
|
||||
return ptr;
|
||||
return (void *) ptr;
|
||||
}
|
||||
|
||||
return 0;
|
||||
@ -119,7 +119,7 @@ void* DynamicLibrary::SearchForAddressOfSymbol(const char* symbolName) {
|
||||
|
||||
void *DynamicLibrary::GetAddressOfSymbol(const char *symbolName) {
|
||||
assert(handle != 0 && "Invalid DynamicLibrary handle");
|
||||
return GetProcAddress((HMODULE)handle, symbolName);
|
||||
return (void *) GetProcAddress((HMODULE)handle, symbolName);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user