We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8f9555 commit 0241b3bCopy full SHA for 0241b3b
Zend/zend_atomic.h
@@ -19,22 +19,17 @@
19
20
#include <stdbool.h>
21
22
-#define ZEND_GCC_PREREQ(x, y) \
23
- ((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x)))
24
-
25
/* Builtins are used to avoid library linkage */
26
#if __has_feature(c_atomic)
27
#define HAVE_C11_ATOMICS 1
28
-#elif ZEND_GCC_PREREQ(4, 7)
+#elif ZEND_GCC_VERSION >= 4007
29
#define HAVE_GNUC_ATOMICS 1
30
#elif defined(__GNUC__)
31
#define HAVE_SYNC_ATOMICS 1
32
#elif !defined(ZEND_WIN32)
33
#define HAVE_NO_ATOMICS 1
34
#endif
35
36
-#undef ZEND_GCC_PREREQ
37
38
/* Treat zend_atomic_* types as opaque. They have definitions only for size
39
* and alignment purposes.
40
*/
0 commit comments