diff options
author | Georgi Valkov <gvalkov@gmail.com> | 2024-05-03 06:51:08 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2024-05-14 15:25:38 +0200 |
commit | d8dd1dfdf5cf2343f6afd43dad4ce37045218624 (patch) | |
tree | bea8cdd835126406fa168b6c759d7331dd505bcb /crypto/threads_win.c | |
parent | crypto/riscvcap: fix function declaration for hwprobe_to_cap (diff) | |
download | openssl-d8dd1dfdf5cf2343f6afd43dad4ce37045218624.tar.xz openssl-d8dd1dfdf5cf2343f6afd43dad4ce37045218624.zip |
threads_win: fix build error with VS2010
VC 2010 or earlier compilers do not support static inline.
To work around this problem, we can use the ossl_inline macro.
Fixes:
crypto\threads_win.c(171) : error C2054: expected '(' to follow 'inline'
crypto\threads_win.c(172) : error C2085: 'get_hold_current_qp' : not in formal parameter list
crypto\threads_win.c(172) : error C2143: syntax error : missing ';' before '{'
crypto\threads_win.c(228) : warning C4013: 'get_hold_current_qp' undefined; assuming extern returning int
crypto\threads_win.c(228) : warning C4047: '=' : 'rcu_qp *' differs in levels of indirection from 'int'
Signed-off-by: Georgi Valkov <gvalkov@gmail.com>
Reviewed-by: Tom Cosgrove <tom.cosgrove@arm.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/24370)
Diffstat (limited to 'crypto/threads_win.c')
-rw-r--r-- | crypto/threads_win.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/threads_win.c b/crypto/threads_win.c index ea72670f22..a36e3752f6 100644 --- a/crypto/threads_win.c +++ b/crypto/threads_win.c @@ -168,7 +168,7 @@ void ossl_rcu_lock_free(CRYPTO_RCU_LOCK *lock) OPENSSL_free(lock); } -static inline struct rcu_qp *get_hold_current_qp(CRYPTO_RCU_LOCK *lock) +static ossl_inline struct rcu_qp *get_hold_current_qp(CRYPTO_RCU_LOCK *lock) { uint32_t qp_idx; |