From a7f49cc7fdfe20030eabfd5d1e639b6bea4e58ab Mon Sep 17 00:00:00 2001 From: bel Date: Fri, 15 Jul 2016 20:26:26 +0200 Subject: [PATCH] Use OS independent atomic function instead of Windows specific --- src/civetweb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/civetweb.c b/src/civetweb.c index 081d0fec..a8be9d61 100644 --- a/src/civetweb.c +++ b/src/civetweb.c @@ -11174,7 +11174,7 @@ refresh_trust(struct mg_connection *conn) } } - if (1 == InterlockedIncrement(p_reload_lock)) { + if (1 == mg_atomic_inc(p_reload_lock)) { if (ssl_use_pem_file(conn->ctx, pem) == 0) { return 0; }