]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/platform-bionic.git/blobdiff - libc/include/stdatomic.h
Allow stdatomic.h to be included from mingw prebuilt.
[android-sdk/platform-bionic.git] / libc / include / stdatomic.h
index 58cb1bc0e183af3460b3e8b293827371b8d04b64..2c4f1ce30f012ad84363cc2d2e7bc00c4de92d01 100644 (file)
 
 #include <sys/cdefs.h>
 
+#if defined(__GNUC__) && !defined(__GNUC_PREREQ)
+/* Duplicate definition here, since the mingw sys/cdefs.h omits the  */
+/* definition, and this needs to be usable there.                    */
+#define        __GNUC_PREREQ(x, y)    \
+       ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x)))
+#endif /* __GNUC__ && ... */
 
 #if defined(__cplusplus) && __cplusplus >= 201103L && defined(_USING_LIBCXX)
 # ifdef __clang__