Skip to content

Commit

Permalink
c11: Fix check about __STDC_VERSION__
Browse files Browse the repository at this point in the history
For C11 it is defined as `201112L`. The erroneous value `201103L` was for C++11.
  • Loading branch information
lhmouse committed Nov 9, 2023
1 parent 3234bea commit e0bb748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mcfgthread/c11.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ __MCF_C_DECLARATIONS_BEGIN
#endif

/* N1570 7.26.1 Introduction */
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201103L)
#if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 201112L)
# define thread_local _Thread_local
#endif

Expand Down

0 comments on commit e0bb748

Please sign in to comment.