ia64: ucontext.h: drop __cplusplus

Building a lot of glibc files trigger warnings like so:
.../ucontext.h:52:25: warning: variably modified '_pad' at file scope

The ia64 header protects the use of __builtin_offsetof by a C++
compiler, but this builtin works just fine with C compilers, so
allow it to be used there too.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
Mike Frysinger 2012-04-16 22:45:14 -04:00
parent e43013840b
commit 91e5f2e441
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2012-04-27 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/ia64/sys/ucontext.h: Delete __cplusplus
define check.
2012-04-27 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/ia64/nptl/bits/pthreadtypes.h

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1998, 2000, 2001, 2002, 2004 Free Software Foundation, Inc.
/* Copyright (C) 1998-2012 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
@ -31,7 +31,7 @@
typedef struct sigcontext mcontext_t;
#if defined __cplusplus && __GNUC_PREREQ (3, 5)
#if __GNUC_PREREQ (3, 5)
# define _SC_GR0_OFFSET \
__builtin_offsetof (struct sigcontext, sc_gr[0])
#elif defined __GNUC__