blob: 901ee22f3c942f883c1db2f61d5d953990f7d0d3 [file] [log] [blame]
hendrikwb1ac52f2015-10-01 18:29:34 -07001/*
2 * Copyright 2015 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
mtklein1ee76512015-11-02 10:20:27 -08007#include "SkTypes.h"
8#if !defined(SK_BUILD_FOR_WIN32)
9
hendrikwb1ac52f2015-10-01 18:29:34 -070010#include "SkOSLibrary.h"
11
12#include <dlfcn.h>
13
14void* DynamicLoadLibrary(const char* libraryName) {
Mike Kleinb3384842017-03-27 14:28:07 -040015 return dlopen(libraryName, RTLD_LAZY);
hendrikwb1ac52f2015-10-01 18:29:34 -070016}
17
18void* GetProcedureAddress(void* library, const char* functionName) {
19 return dlsym(library, functionName);
20}
mtklein1ee76512015-11-02 10:20:27 -080021#endif//!defined(SK_BUILD_FOR_WIN32)