diff options
author | David Robillard <d@drobilla.net> | 2023-01-14 21:32:21 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2023-01-14 21:32:21 -0500 |
commit | 06c3b001eb292d579f86813cee293d8587de7d6f (patch) | |
tree | a8003937b539f0c07c4a095c840e7469278eb0fd | |
parent | 3e37783d428937933845cdf64eff12c8ead14f74 (diff) | |
download | raul-06c3b001eb292d579f86813cee293d8587de7d6f.tar.gz raul-06c3b001eb292d579f86813cee293d8587de7d6f.tar.bz2 raul-06c3b001eb292d579f86813cee293d8587de7d6f.zip |
Fix old-style cast
-rw-r--r-- | include/raul/Semaphore.hpp | 3 | ||||
-rw-r--r-- | meson/library/meson.build | 31 |
2 files changed, 2 insertions, 32 deletions
diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp index 7d70f60..6194a5e 100644 --- a/include/raul/Semaphore.hpp +++ b/include/raul/Semaphore.hpp @@ -153,7 +153,8 @@ Semaphore::timed_wait(const std::chrono::duration<Rep, Period>& wait) inline bool Semaphore::init(unsigned initial) { - if (!(_sem = CreateSemaphore(NULL, (LONG)initial, LONG_MAX, NULL))) { + if (!(_sem = + CreateSemaphore(NULL, static_cast<LONG>(initial), LONG_MAX, NULL))) { return false; } diff --git a/meson/library/meson.build b/meson/library/meson.build deleted file mode 100644 index 921f3c3..0000000 --- a/meson/library/meson.build +++ /dev/null @@ -1,31 +0,0 @@ -# Copyright 2020-2022 David Robillard <d@drobilla.net> -# SPDX-License-Identifier: 0BSD OR GPL-3.0-or-later - -# General definitions for building libraries. -# -# These are essentially workarounds for Meson/Windows/MSVC. Unfortunately, -# Meson's default_library option doesn't support shared and static builds very -# well. In particular, it's often necessary to define different symbols for -# static and shared builds of libraries so that symbols can be exported. To -# work around this, default_library=both isn't supported on Windows. On other -# platforms with GCC-like compilers, we can support both because symbols can -# safely be exported in the same way (giving them default visibility) in both -# static and shared builds. - -default_library = get_option('default_library') -host_system = host_machine.system() - -# Abort on Windows with default_library=both -if host_system == 'windows' and default_library == 'both' - error('default_library=both is not supported on Windows') -endif - -# Set library_suffix to the suffix for libraries -if host_system == 'windows' and default_library == 'shared' - # Meson appends a version to the name only for DLLs, which leads to - # inconsistent library names, like `mylib-1-1`. So, provide no suffix to - # ultimately get the same name as on other platforms, like `mylib-1`. - library_suffix = '' -else - library_suffix = '-@0@'.format(meson.project_version().split('.')[0]) -endif |