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 13 #include <dlfcn.h> 14 DynamicLoadLibrary(const char * libraryName)15void* DynamicLoadLibrary(const char* libraryName) { 16 return dlopen(libraryName, RTLD_LAZY); 17 } 18 GetProcedureAddress(void * library,const char * functionName)19void* GetProcedureAddress(void* library, const char* functionName) { 20 return dlsym(library, functionName); 21 } 22 #endif//!defined(SK_BUILD_FOR_WIN32) 23