From 369ea0f6080ffcaa7ba92e7c6d0f8610484ebf2e Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 8 Sep 2015 10:03:23 -0700 Subject: [PATCH] os: fix some variables not static --- src/os.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/os.cpp b/src/os.cpp index a222e4a..5e052fa 100644 --- a/src/os.cpp +++ b/src/os.cpp @@ -121,12 +121,12 @@ struct SoundIoOsCond { #endif #if defined(SOUNDIO_OS_WINDOWS) -INIT_ONCE win32_init_once = INIT_ONCE_STATIC_INIT; +static INIT_ONCE win32_init_once = INIT_ONCE_STATIC_INIT; static double win32_time_resolution; -SYSTEM_INFO win32_system_info; +static SYSTEM_INFO win32_system_info; #else -atomic_bool initialized = ATOMIC_VAR_INIT(false); -pthread_mutex_t init_mutex = PTHREAD_MUTEX_INITIALIZER; +static atomic_bool initialized = ATOMIC_VAR_INIT(false); +static pthread_mutex_t init_mutex = PTHREAD_MUTEX_INITIALIZER; #endif static int page_size;