Use C11 threads only if available

This commit is contained in:
Ivan Lezhankin 2019-01-11 16:36:30 +03:00
parent 77daa519ff
commit 07f8ef4f4c

View File

@ -1,4 +1,4 @@
// Automatically generated by ./configure // Automatically generated by ./configure
#ifndef _CONFIG_H_ #ifndef _CONFIG_H_
#define _CONFIG_H_ #define _CONFIG_H_
#define ARCH "x86_64" #define ARCH "x86_64"
@ -72,5 +72,7 @@
// python // python
//#define HAVE_PYTHON 1 //#define HAVE_PYTHON 1
// C11 threads // C11 threads
#define WITH_C11THREADS 1 #if (__STDC_VERSION__ >= 201112L) && !defined(__STDC_NO_THREADS__)
# define WITH_C11THREADS 1
#endif
#endif /* _CONFIG_H_ */ #endif /* _CONFIG_H_ */