aboutsummaryrefslogtreecommitdiff
path: root/sokol_audio.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2018-10-08 14:48:18 +0200
committerAndre Weissflog <floooh@gmail.com>2018-10-08 14:48:18 +0200
commit0e6ea1c913676472cc1a8c61543de04eacb04e65 (patch)
treeff40a9065b6bdcfe3fd960826fc217463acc8587 /sokol_audio.h
parent2b871190b82e75786140e73cd04fb0027870c7e0 (diff)
sokol_audio.h win32: fix error when windows.h wasn't included before sokol_audio.h
Diffstat (limited to 'sokol_audio.h')
-rw-r--r--sokol_audio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/sokol_audio.h b/sokol_audio.h
index 81de0937..31099a2b 100644
--- a/sokol_audio.h
+++ b/sokol_audio.h
@@ -442,7 +442,11 @@ _SOKOL_PRIVATE void _saudio_mutex_unlock(void) {
pthread_mutex_unlock(&_saudio_mutex);
}
#elif defined(_WIN32)
-#include "synchapi.h"
+#ifndef WIN32_LEAN_AND_MEAN
+#define WIN32_LEAN_AND_MEAN
+#endif
+#include <windows.h>
+#include <synchapi.h>
#pragma comment (lib, "kernel32.lib")
#pragma comment (lib, "ole32.lib")