* lib/stdio.in.h (scanf): Treat clang like GCC.
+2020-08-16 Bruno Haible <bruno@clisp.org>
+
+ stdio: Don't break attribute 'scanf' on clang.
+ * lib/stdio.in.h (scanf): Treat clang like GCC.
+
2020-08-16 Bruno Haible <bruno@clisp.org>
Use __restrict also on clang.
#if @GNULIB_SCANF@
# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
-# if defined __GNUC__
+# if defined __GNUC__ || defined __clang__
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
# undef scanf
/* Don't break __attribute__((format(scanf,M,N))). */