mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2004-09-01 Andreas Schwab <schwab@suse.de> * sysdeps/unix/sysv/linux/ia64/sys/ucontext.h [g++ >= 3.5]: Use __builtin_offsetof.
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 1998, 2000, 2001, 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1998, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
|
||||
The GNU C Library is free software; you can redistribute it and/or
|
||||
@ -32,7 +32,10 @@
|
||||
|
||||
typedef struct sigcontext mcontext_t;
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined __cplusplus && __GNUC_PREREQ (3, 5)
|
||||
# define _SC_GR0_OFFSET \
|
||||
__builtin_offsetof (struct sigcontext, sc_gr[0])
|
||||
#elif defined __GNUC__
|
||||
# define _SC_GR0_OFFSET \
|
||||
(((char *) &((struct sigcontext *) 0)->sc_gr[0]) - (char *) 0)
|
||||
#else
|
||||
|
Reference in New Issue
Block a user