]> granicus.if.org Git - php/commitdiff
Remove restrict zend_portability define
authorNikita Popov <nikita.ppv@gmail.com>
Thu, 11 Apr 2019 13:32:30 +0000 (15:32 +0200)
committerNikita Popov <nikita.ppv@gmail.com>
Thu, 11 Apr 2019 13:32:30 +0000 (15:32 +0200)
We're not using this anywhere, and it causes warnings, so I'm
dropping it. If we do end up needing this, it should be reintroduced
with a ZEND_ prefix.

Zend/zend_portability.h

index 56b7a1ada3d7eb5bfd65db124c964b77bf52fb96..b0eb20bf40d73081a8d8a24dd95fbb682e2a54f5 100644 (file)
@@ -256,14 +256,6 @@ char *alloca();
 # define ZEND_FASTCALL
 #endif
 
-#ifndef restrict
-# if defined(__GNUC__) && ZEND_GCC_VERSION >= 3004
-# else
-#  define __restrict__
-# endif
-# define restrict __restrict__
-#endif
-
 #if (defined(__GNUC__) && __GNUC__ >= 3 && !defined(__INTEL_COMPILER) && !defined(DARWIN) && !defined(__hpux) && !defined(_AIX) && !defined(__osf__)) || __has_attribute(noreturn)
 # define HAVE_NORETURN
 # define ZEND_NORETURN __attribute__((noreturn))