OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 #include "SkTypes.h" | 7 #include "SkTypes.h" |
8 #if defined(SK_BUILD_FOR_WIN32) | 8 #if defined(SK_BUILD_FOR_WIN32) |
9 | 9 |
10 #include "SkOSLibrary.h" | 10 #include "SkOSLibrary.h" |
11 #include <windows.h> | 11 #include "SkLeanWindows.h" |
12 | 12 |
13 void* DynamicLoadLibrary(const char* libraryName) { | 13 void* DynamicLoadLibrary(const char* libraryName) { |
14 return LoadLibraryA(libraryName); | 14 return LoadLibraryA(libraryName); |
15 } | 15 } |
16 | 16 |
17 void* GetProcedureAddress(void* library, const char* functionName) { | 17 void* GetProcedureAddress(void* library, const char* functionName) { |
18 return reinterpret_cast<void*>(::GetProcAddress((HMODULE)library, functionNa
me)); | 18 return reinterpret_cast<void*>(::GetProcAddress((HMODULE)library, functionNa
me)); |
19 } | 19 } |
20 | 20 |
21 #endif//defined(SK_BUILD_FOR_WIN32) | 21 #endif//defined(SK_BUILD_FOR_WIN32) |
OLD | NEW |