mirror of https://github.com/mpv-player/mpv
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.)
This commit is contained in:
parent
e8cdc22245
commit
8c39c6903b
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue