diff options
Diffstat (limited to 'sysdeps/m68k/sys/ucontext.h')
-rw-r--r-- | sysdeps/m68k/sys/ucontext.h | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/sysdeps/m68k/sys/ucontext.h b/sysdeps/m68k/sys/ucontext.h index 2b70e72fc4..a742aaff9a 100644 --- a/sysdeps/m68k/sys/ucontext.h +++ b/sysdeps/m68k/sys/ucontext.h @@ -31,10 +31,13 @@ typedef int greg_t; /* Number of general registers. */ -#define NGREG 18 +#define __NGREG 18 +#ifdef __USE_MISC +# define NGREG __NGREG +#endif /* Container for all general registers. */ -typedef greg_t gregset_t[NGREG]; +typedef greg_t gregset_t[__NGREG]; #ifdef __USE_MISC /* Number of each register is the `gregset_t' array. */ @@ -90,13 +93,21 @@ typedef struct fpregset } fpregset_t; #endif +#ifdef __USE_MISC +# define __ctx(fld) fld +#else +# define __ctx(fld) __ ## fld +#endif + /* Context to describe whole processor state. */ typedef struct { - int version; - gregset_t gregs; + int __ctx(version); + gregset_t __ctx(gregs); } mcontext_t; +#undef __ctx + #ifdef __USE_MISC # define MCONTEXT_VERSION 1 #endif |