From 00cc5944dfc8c85ab5c5bee4cdef221afa2121f7 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 12 Jun 2020 20:21:12 -0700 Subject: [PATCH] Comment a use of `__attribute__((visibility("protected")))`. (#204) This comments out a use of "protected" visibility, since [WebAssembly doesn't support it]. [WebAssembly doesn't support it]: https://reviews.llvm.org/D81688 --- libc-top-half/musl/src/internal/stdio_impl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libc-top-half/musl/src/internal/stdio_impl.h b/libc-top-half/musl/src/internal/stdio_impl.h index 3eb420b..537e7a2 100644 --- a/libc-top-half/musl/src/internal/stdio_impl.h +++ b/libc-top-half/musl/src/internal/stdio_impl.h @@ -89,9 +89,11 @@ hidden int __towrite(FILE *); hidden void __stdio_exit(void); hidden void __stdio_exit_needed(void); +#ifdef __wasilibc_unmodified_upstream // wasm has no "protected" visibility #if defined(__PIC__) && (100*__GNUC__+__GNUC_MINOR__ >= 303) __attribute__((visibility("protected"))) #endif +#endif int __overflow(FILE *, int), __uflow(FILE *); hidden int __fseeko(FILE *, off_t, int);