blob: 08d3922c282b4224ec040307f7c47d439ceca4d9 [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"
Mike Klein8f11d4d2018-01-24 12:42:55 -05008#if !defined(SK_BUILD_FOR_WIN)
mtklein1ee76512015-11-02 10:20:27 -08009
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}
Mike Klein8f11d4d2018-01-24 12:42:55 -050021#endif//!defined(SK_BUILD_FOR_WIN)