Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions include/qt_macros.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
#ifndef QT_MACROS_H
#define QT_MACROS_H

// Work around OSX currently refusing to support threads.h
#if 201112L <= __STDC_VERSION__ && __STDC_VERSION__ < 202311L
#ifndef __STDC_NO_THREADS__
#include <threads.h>
#else
#define thread_local _Thread_local
#endif
#elif __STDC_VERSION__ < 201112L
#error "C11 is required"
#endif

#ifdef HAVE_CONFIG_H
#include <config.h>
Expand Down
Loading