mirror of
https://git.freebsd.org/ports.git
synced 2025-06-08 14:20:33 -04:00
Add printf0 support. [1] Install the clang C headers (excluding std*.h since we have our own) now that the installer puts them somewhere sane. Submitted by: ed
17 lines
592 B
C++
17 lines
592 B
C++
|
|
$FreeBSD$
|
|
|
|
--- tools/clang/lib/Sema/SemaDeclAttr.cpp.orig
|
|
+++ tools/clang/lib/Sema/SemaDeclAttr.cpp
|
|
@@ -1011,7 +1011,10 @@
|
|
default: break;
|
|
case 5: Supported = !memcmp(Format, "scanf", 5); break;
|
|
case 6: Supported = !memcmp(Format, "printf", 6); break;
|
|
- case 7: Supported = !memcmp(Format, "strfmon", 7); break;
|
|
+ case 7:
|
|
+ Supported = (!memcmp(Format, "strfmon", 7) ||
|
|
+ !memcmp(Format, "printf0", 7));
|
|
+ break;
|
|
case 8:
|
|
Supported = (is_strftime = !memcmp(Format, "strftime", 8)) ||
|
|
(is_NSString = !memcmp(Format, "NSString", 8)) ||
|