The user can define M_USE_C11_NO_THREADS to disable C11 header (Support for broken C11 implementation)

This commit is contained in:
Patrick Pelissier committed 2020-06-29 21:53:09 +02:00
1 parent a24c530ec6
commit 47296e5c11
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -6033,7 +6033,7 @@ If the C11 implementation does not respect the C standard
(i.e. the compiler targets C11 mode (i.e. the compiler targets C11 mode
the \_\_STDC\_NO\_THREADS\_\_ macro is not defined the \_\_STDC\_NO\_THREADS\_\_ macro is not defined
but the header threads.h is not available or not working), but the header threads.h is not available or not working),
then the user shall define manually the \_\_STDC\_NO\_THREADS\_\_ then the user shall define manually the M\_USE\_C11\_NO\_THREADS
macro before including any M\*LIB header to disable it, so that macro before including any M\*LIB header to disable it, so that
M\*LIB can select another implementation. M\*LIB can select another implementation.
+2 -1
View File
@@ -26,7 +26,8 @@
#define MSTARLIB_MUTEX_H #define MSTARLIB_MUTEX_H
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \ #if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L \
&& !defined(__STDC_NO_THREADS__) && !defined(__STDC_NO_THREADS__) \
&& !defined(M_USE_C11_NO_THREADS)
/****************************** C11 version ********************************/ /****************************** C11 version ********************************/