blob: 1571e20085889d1ad431db0a35208c3922aa608c [file] [log] [blame]
hendrikwb1ac52f2015-10-01 18:29:34 -07001
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 */
mtklein1ee76512015-11-02 10:20:27 -08008#include "SkTypes.h"
9#if !defined(SK_BUILD_FOR_WIN32)
10
hendrikwb1ac52f2015-10-01 18:29:34 -070011#include "SkOSLibrary.h"
12
13#include <dlfcn.h>
14
15void* DynamicLoadLibrary(const char* libraryName) {
16 return dlopen(libraryName, RTLD_LAZY);
17}
18
19void* GetProcedureAddress(void* library, const char* functionName) {
20 return dlsym(library, functionName);
21}
mtklein1ee76512015-11-02 10:20:27 -080022#endif//!defined(SK_BUILD_FOR_WIN32)