[libc-commits] [libc] [libc] Disable hidden visibility for LIBC_NAMESPACE with GCC (PR #98549)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Thu Jul 11 14:04:07 PDT 2024


================
@@ -28,6 +28,7 @@
 #define LIBC_HAS_FEATURE(f) 0
 #endif
 
+#ifndef __GNUC__
----------------
michaelrj-google wrote:

doesn't clang define `__GNUC__` for compatibility? Would it be better to instead use `#ifdef __clang__` instead?

https://github.com/llvm/llvm-project/pull/98549


More information about the libc-commits mailing list