blob: b4b957e0625f8fa8e26de8b00bfeff84c360886b [file] [log] [blame]
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkTypes.h"
#if !defined(SK_BUILD_FOR_WIN)
#include "src/ports/SkOSLibrary.h"
#include <dlfcn.h>
void* DynamicLoadLibrary(const char* libraryName) {
return dlopen(libraryName, RTLD_LAZY);
}
void* GetProcedureAddress(void* library, const char* functionName) {
return dlsym(library, functionName);
}
#endif//!defined(SK_BUILD_FOR_WIN)