From 92777f34df805c2069d14c28fe976256d31ed0ab Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 6 Jul 2016 11:43:54 +0200 Subject: hurd: Fix PTR_{,DE}MANGLE calls * libio/iofopncook.c (_IO_cookie_read, _IO_cookie_write, _IO_cookie_seek, _IO_cookie_close, _IO_old_cookie_seek) [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE. (set_callbacks) [!PTR_MANGLE]: Do not call PTR_MANGLE. * libio/vtables.c (_IO_vtable_check) [!PTR_DEMANGLE]: Do not call PTR_DEMANGLE. * libio/libioP.h (IO_set_accept_foreign_vtables) [!PTR_MANGLE]: Do not call PTR_MANGLE. --- libio/vtables.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libio/vtables.c') diff --git a/libio/vtables.c b/libio/vtables.c index e364ea03ed..b361f44e91 100644 --- a/libio/vtables.c +++ b/libio/vtables.c @@ -41,7 +41,9 @@ _IO_vtable_check (void) #ifdef SHARED /* Honor the compatibility flag. */ void (*flag) (void) = atomic_load_relaxed (&IO_accept_foreign_vtables); +#ifdef PTR_DEMANGLE PTR_DEMANGLE (flag); +#endif if (flag == &_IO_vtable_check) return; -- cgit v1.2.1