hendrikw | b1ac52f | 2015-10-01 18:29:34 -0700 | [diff] [blame] | 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 | */ |
mtklein | 1ee7651 | 2015-11-02 10:20:27 -0800 | [diff] [blame] | 8 | #include "SkTypes.h" |
| 9 | #if !defined(SK_BUILD_FOR_WIN32) |
| 10 | |
hendrikw | b1ac52f | 2015-10-01 18:29:34 -0700 | [diff] [blame] | 11 | #include "SkOSLibrary.h" |
| 12 | |
| 13 | #include <dlfcn.h> |
| 14 | |
| 15 | void* DynamicLoadLibrary(const char* libraryName) { |
| 16 | return dlopen(libraryName, RTLD_LAZY); |
| 17 | } |
| 18 | |
| 19 | void* GetProcedureAddress(void* library, const char* functionName) { |
| 20 | return dlsym(library, functionName); |
| 21 | } |
mtklein | 1ee7651 | 2015-11-02 10:20:27 -0800 | [diff] [blame] | 22 | #endif//!defined(SK_BUILD_FOR_WIN32) |