summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorNikita Popov <nikita.ppv@gmail.com>2019-07-12 13:18:53 +0200
committerNikita Popov <nikita.ppv@gmail.com>2019-07-12 13:18:53 +0200
commit96daf181a689407301a5bc6a8761f4ba9bc47c15 (patch)
tree538077c34664375c793ca1b1a6aa0188dcf624bd /main/php.h
parent98495f7f309fd7774357001ee6613cc56a22ed0a (diff)
parente2c3bc80e3ac49443cb1b5f2a601db6186459f7a (diff)
downloadphp-git-96daf181a689407301a5bc6a8761f4ba9bc47c15.tar.gz
Merge branch 'PHP-7.4'
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h35
1 files changed, 0 insertions, 35 deletions
diff --git a/main/php.h b/main/php.h
index 222f884b26..2d0a1f8ce1 100644
--- a/main/php.h
+++ b/main/php.h
@@ -448,39 +448,4 @@ END_EXTERN_C()
#include "php_reentrancy.h"
-/* Finding offsets of elements within structures.
- * Taken from the Apache code, which in turn, was taken from X code...
- */
-
-#ifndef XtOffset
-#if defined(CRAY) || (defined(__arm) && !(defined(LINUX) || defined(__riscos__)))
-#ifdef __STDC__
-#define XtOffset(p_type, field) _Offsetof(p_type, field)
-#else
-#ifdef CRAY2
-#define XtOffset(p_type, field) \
- (sizeof(int)*((unsigned int)&(((p_type)NULL)->field)))
-
-#else /* !CRAY2 */
-
-#define XtOffset(p_type, field) ((unsigned int)&(((p_type)NULL)->field))
-
-#endif /* !CRAY2 */
-#endif /* __STDC__ */
-#else /* ! (CRAY || __arm) */
-
-#define XtOffset(p_type, field) \
- ((zend_long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
-
-#endif /* !CRAY */
-#endif /* ! XtOffset */
-
-#ifndef XtOffsetOf
-#ifdef offsetof
-#define XtOffsetOf(s_type, field) offsetof(s_type, field)
-#else
-#define XtOffsetOf(s_type, field) XtOffset(s_type*, field)
-#endif
-#endif /* !XtOffsetOf */
-
#endif