aboutsummaryrefslogtreecommitdiff
path: root/sokol_app.h
diff options
context:
space:
mode:
authorAndre Weissflog <floooh@gmail.com>2019-01-22 18:52:42 +0100
committerAndre Weissflog <floooh@gmail.com>2019-01-22 18:52:42 +0100
commitec98fefcafdc850f6b7e2b2c8ba453470e370830 (patch)
treef4410ceb7d372a6d804f4392db433310d8adec2a /sokol_app.h
parentcd8f5c3763c7e3ef2418e7d30a8d3be1aaadbcae (diff)
sokol_app.h, sokol_audio.h: exclude emscripten when detecting __unix__
Diffstat (limited to 'sokol_app.h')
-rw-r--r--sokol_app.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sokol_app.h b/sokol_app.h
index 9e88fa40..458c1bac 100644
--- a/sokol_app.h
+++ b/sokol_app.h
@@ -3875,7 +3875,7 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
#endif /* WINDOWS */
/*== LINUX ==================================================================*/
-#if defined(__linux__) || defined(__unix__)
+#if (defined(__linux__) || defined(__unix__)) && !defined(__EMSCRIPTEN__)
#define GL_GLEXT_PROTOTYPES
#include <X11/X.h>
#include <X11/Xlib.h>