diff options
author | David Robillard <d@drobilla.net> | 2022-06-29 09:44:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-07-20 16:24:23 -0400 |
commit | cf72f2855fccaf1c579388bcdba2a219a9983d96 (patch) | |
tree | 8ce97ba5feeb262b77ff77f051e63a2107e0b08a /include/raul/Semaphore.hpp | |
parent | d3bb4e9c2dba3cebfa7ce9f37d32e54ec2fe14a3 (diff) | |
download | raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.tar.gz raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.tar.bz2 raul-cf72f2855fccaf1c579388bcdba2a219a9983d96.zip |
Remove redundant inline specifiers
Diffstat (limited to 'include/raul/Semaphore.hpp')
-rw-r--r-- | include/raul/Semaphore.hpp | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/raul/Semaphore.hpp b/include/raul/Semaphore.hpp index f66bb9d..2cf93db 100644 --- a/include/raul/Semaphore.hpp +++ b/include/raul/Semaphore.hpp @@ -7,7 +7,9 @@ #ifdef __APPLE__ # include <mach/mach.h> #elif defined(_WIN32) -# define NOMINMAX +# ifndef NOMINMAX +# define NOMINMAX +# endif # include <windows.h> #else # include <cerrno> @@ -50,16 +52,16 @@ public: } } - inline Semaphore(const Semaphore&) = delete; - inline Semaphore& operator=(const Semaphore&) = delete; + Semaphore(const Semaphore&) = delete; + Semaphore& operator=(const Semaphore&) = delete; - inline Semaphore(Semaphore&&) = delete; - inline Semaphore& operator=(Semaphore&&) = delete; + Semaphore(Semaphore&&) = delete; + Semaphore& operator=(Semaphore&&) = delete; - inline ~Semaphore() { destroy(); } + ~Semaphore() { destroy(); } /// Destroy and reset to a new initial value - inline void reset(unsigned initial) + void reset(unsigned initial) { destroy(); init(initial); |