win: remove __declspec(inline) from atomic op
__declspec(inline) is completely undocumented, as well as unnecessary. The INLINE preprocessor macro is used throughout libuv, so this simply replaces the only instance of declspec(inline) with the macro version. PR-URL: https://github.com/libuv/libuv/pull/1307 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
bcf6202921
commit
196eb8b94f
@ -23,6 +23,7 @@
|
||||
#define UV_WIN_ATOMICOPS_INL_H_
|
||||
|
||||
#include "uv.h"
|
||||
#include "internal.h"
|
||||
|
||||
|
||||
/* Atomic set operation on char */
|
||||
@ -34,7 +35,7 @@
|
||||
/* target to be aligned. */
|
||||
#pragma intrinsic(_InterlockedOr8)
|
||||
|
||||
static char __declspec(inline) uv__atomic_exchange_set(char volatile* target) {
|
||||
static char INLINE uv__atomic_exchange_set(char volatile* target) {
|
||||
return _InterlockedOr8(target, 1);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user