Module Name: src
Committed By: christos
Date: Sun Jan 26 18:11:43 UTC 2025
Modified Files:
src/external/apache2/mDNSResponder/dist/mDNSShared: dns_sd.h
Log Message:
Avoid extensions that the clang preprocessor defines, but lint does not
understand
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h
diff -u src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1.8 src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1.9
--- src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h:1.8 Sat Oct 26 14:14:19 2024
+++ src/external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h Sun Jan 26 13:11:43 2025
@@ -165,7 +165,7 @@ typedef INT32 int32_t;
#define __has_feature(X) 0
#endif
-#if __has_feature(objc_fixed_enum) || __has_extension(cxx_fixed_enum) || __has_extension(cxx_strong_enums)
+#if !defined(__lint__) && (__has_feature(objc_fixed_enum) || __has_extension(cxx_fixed_enum) || __has_extension(cxx_strong_enums))
#define DNS_SERVICE_FLAGS_ENUM enum : uint32_t
#else
#define DNS_SERVICE_FLAGS_ENUM enum
@@ -176,7 +176,7 @@ typedef INT32 int32_t;
#endif
#ifndef DNS_SD_NULLABLE
- #if __has_feature(nullability)
+ #if __has_feature(nullability) && !defined(__lint__)
#define DNS_SD_NULLABLE _Nullable
#define DNS_SD_NONNULL _Nonnull
#else