Skip to content

Commit 0241b3b

Browse files
committed
Remove ZEND_GCC_PREREQ()
We already have ZEND_GCC_VERSION to do such check.
1 parent c8f9555 commit 0241b3b

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Zend/zend_atomic.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,17 @@
1919

2020
#include <stdbool.h>
2121

22-
#define ZEND_GCC_PREREQ(x, y) \
23-
((__GNUC__ == (x) && __GNUC_MINOR__ >= (y)) || (__GNUC__ > (x)))
24-
2522
/* Builtins are used to avoid library linkage */
2623
#if __has_feature(c_atomic)
2724
#define HAVE_C11_ATOMICS 1
28-
#elif ZEND_GCC_PREREQ(4, 7)
25+
#elif ZEND_GCC_VERSION >= 4007
2926
#define HAVE_GNUC_ATOMICS 1
3027
#elif defined(__GNUC__)
3128
#define HAVE_SYNC_ATOMICS 1
3229
#elif !defined(ZEND_WIN32)
3330
#define HAVE_NO_ATOMICS 1
3431
#endif
3532

36-
#undef ZEND_GCC_PREREQ
37-
3833
/* Treat zend_atomic_* types as opaque. They have definitions only for size
3934
* and alignment purposes.
4035
*/

0 commit comments

Comments
 (0)