aboutsummaryrefslogtreecommitdiff
path: root/libvpx/vpx_ports/vpx_once.h
diff options
context:
space:
mode:
Diffstat (limited to 'libvpx/vpx_ports/vpx_once.h')
-rw-r--r--libvpx/vpx_ports/vpx_once.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libvpx/vpx_ports/vpx_once.h b/libvpx/vpx_ports/vpx_once.h
index 4eb592b87..d8a8ed89f 100644
--- a/libvpx/vpx_ports/vpx_once.h
+++ b/libvpx/vpx_ports/vpx_once.h
@@ -95,7 +95,7 @@ static void once(void (*func)(void)) {
#define INCL_DOS
#include <os2.h>
static void once(void (*func)(void)) {
- static int done;
+ static volatile int done;
/* If the initialization is complete, return early. */
if (done) return;
@@ -128,7 +128,7 @@ static void once(void (*func)(void)) {
*/
static void once(void (*func)(void)) {
- static int done;
+ static volatile int done;
if (!done) {
func();