File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -315,6 +315,7 @@ PHPAPI int cfg_get_string(char *varname, char **result);
315
315
* Taken from the Apache code, which in turn, was taken from X code...
316
316
*/
317
317
318
+ #ifndef XtOffset
318
319
#if defined(CRAY ) || (defined(__arm ) && !defined(LINUX ))
319
320
#ifdef __STDC__
320
321
#define XtOffset (p_type , field ) _Offsetof(p_type, field)
@@ -335,13 +336,16 @@ PHPAPI int cfg_get_string(char *varname, char **result);
335
336
((long) (((char *) (&(((p_type)NULL)->field))) - ((char *) NULL)))
336
337
337
338
#endif /* !CRAY */
339
+ #endif /* ! XtOffset */
338
340
341
+ #ifndef XtOffsetOf
339
342
#ifdef offsetof
340
343
#define XtOffsetOf (s_type , field ) offsetof(s_type, field)
341
344
#else
342
345
#define XtOffsetOf (s_type , field ) XtOffset(s_type*, field)
343
346
#endif
344
-
347
+ #endif /* !XtOffsetOf */
348
+
345
349
PHPAPI PHP_FUNCTION (warn_not_available );
346
350
347
351
#endif
You can’t perform that action at this time.
0 commit comments