diff options
author | wm4 <wm4@nowhere> | 2016-09-12 19:49:27 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-12 20:05:48 +0200 |
commit | 8c39c6903b94636742c81922a2f26cfa07510fc6 (patch) | |
tree | 7b96a55ca203e8615259ce4e588ad3873215a7a0 /video | |
parent | e8cdc22245835cb17c82a9dc1525ffa793e34541 (diff) | |
download | mpv-8c39c6903b94636742c81922a2f26cfa07510fc6.tar.bz2 mpv-8c39c6903b94636742c81922a2f26cfa07510fc6.tar.xz |
vo_opengl: fix non-C11 TLS fallback for gcc
The consequence of this was that e.g. hardware decoding with VAAPI-EGL
could sometimes not work if the compiler didn't support C11. (Although I
found this one on RPI, which also uses this mechanism.)
Diffstat (limited to 'video')
-rw-r--r-- | video/out/opengl/context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/opengl/context.c b/video/out/opengl/context.c index 186211da2f..21e6d6799e 100644 --- a/video/out/opengl/context.c +++ b/video/out/opengl/context.c @@ -119,7 +119,7 @@ int mpgl_validate_backend_opt(struct mp_log *log, const struct m_option *opt, #if HAVE_C11_TLS #define MP_TLS _Thread_local -#elif defined(__GNU__) +#elif defined(__GNUC__) #define MP_TLS __thread #endif |