diff options
Diffstat (limited to 'src/dylib.h')
-rw-r--r-- | src/dylib.h | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/src/dylib.h b/src/dylib.h index 3ea98ef..ac8bfbc 100644 --- a/src/dylib.h +++ b/src/dylib.h @@ -1,18 +1,5 @@ -/* - Copyright 2020 David Robillard <d@drobilla.net> - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted, provided that the above - copyright notice and this permission notice appear in all copies. - - THIS SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -*/ +// Copyright 2020-2023 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC #ifndef SUIL_DYLIB_H #define SUIL_DYLIB_H @@ -24,12 +11,13 @@ enum DylibFlags { DYLIB_GLOBAL = 0, DYLIB_LAZY = 1, - DYLIB_NOW = 2, + DYLIB_NOW = 2 }; static inline void* dylib_open(const char* const filename, const int flags) { + (void)flags; return LoadLibrary(filename); } @@ -52,7 +40,7 @@ dylib_error(void) enum DylibFlags { DYLIB_GLOBAL = RTLD_GLOBAL, DYLIB_LAZY = RTLD_LAZY, - DYLIB_NOW = RTLD_NOW, + DYLIB_NOW = RTLD_NOW }; static inline void* |