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