about summary refs log tree commit diff
path: root/libio/vtables.c
diff options
context:
space:
mode:
Diffstat (limited to 'libio/vtables.c')
-rw-r--r--libio/vtables.c2
1 files changed, 2 insertions, 0 deletions
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;