Skip to content

Commit 9318521

Browse files
committed
Revoke the gcc only restriction
clang at least 5.0 supports GNU style attributes and intrinsic macros. In general, compilers claiming this functionality should know, what they do.
1 parent 2d1ec6f commit 9318521

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Zend/zend_portability.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,11 @@ static zend_always_inline double _zend_get_nan(void) /* {{{ */
514514
# endif
515515
#endif
516516

517-
#if defined(__GNUC__) && defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET)
517+
#if defined(HAVE_FUNC_ATTRIBUTE_IFUNC) && defined(HAVE_FUNC_ATTRIBUTE_TARGET)
518518
# define ZEND_INTRIN_HAVE_IFUNC_TARGET 1
519519
#endif
520520

521-
#if defined(__GNUC__) && defined(__SSE4_2__)
521+
#ifdef __SSE4_2__
522522
/* Instructions compiled directly. */
523523
# define ZEND_INTRIN_SSE4_2_NATIVE 1
524524
#elif (defined(__i386__) || defined(__x86_64__)) && defined(HAVE_NMMINTRIN_H) || defined(ZEND_WIN32)

0 commit comments

Comments
 (0)