diff options
author | Nikias Bassen | 2019-01-27 04:01:27 +0100 |
---|---|---|
committer | Nikias Bassen | 2019-01-27 04:01:27 +0100 |
commit | 0a1116c222132e9fc17d2d119d1ca77c7897f429 (patch) | |
tree | 2ebe882e702afa016d8384191c90dc85cb1fbc37 | |
parent | ff37642ad86a3d5bcd87905ea4ac27d7fc364584 (diff) | |
download | libideviceactivation-0a1116c222132e9fc17d2d119d1ca77c7897f429.tar.gz libideviceactivation-0a1116c222132e9fc17d2d119d1ca77c7897f429.tar.bz2 |
win32: Make thread_once() static to silence compiler warning
-rw-r--r-- | src/activation.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/activation.c b/src/activation.c index 34ea741..198289f 100644 --- a/src/activation.c +++ b/src/activation.c @@ -110,7 +110,7 @@ typedef volatile struct { static thread_once_t init_once = {0, 0}; static thread_once_t deinit_once = {0, 0}; -void thread_once(thread_once_t *once_control, void (*init_routine)(void)) +static void thread_once(thread_once_t *once_control, void (*init_routine)(void)) { while (InterlockedExchange(&(once_control->lock), 1) != 0) { Sleep(1); |