Skip to content

Commit c2a3472

Browse files
committed
Avoid extensions that the clang preprocessor defines, but lint does not
understand
1 parent 57b3a1e commit c2a3472

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • external/apache2/mDNSResponder/dist/mDNSShared

external/apache2/mDNSResponder/dist/mDNSShared/dns_sd.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ typedef INT32 int32_t;
165165
#define __has_feature(X) 0
166166
#endif
167167

168-
#if __has_feature(objc_fixed_enum) || __has_extension(cxx_fixed_enum) || __has_extension(cxx_strong_enums)
168+
#if !defined(__lint__) && (__has_feature(objc_fixed_enum) || __has_extension(cxx_fixed_enum) || __has_extension(cxx_strong_enums))
169169
#define DNS_SERVICE_FLAGS_ENUM enum : uint32_t
170170
#else
171171
#define DNS_SERVICE_FLAGS_ENUM enum
@@ -176,7 +176,7 @@ typedef INT32 int32_t;
176176
#endif
177177

178178
#ifndef DNS_SD_NULLABLE
179-
#if __has_feature(nullability)
179+
#if __has_feature(nullability) && !defined(__lint__)
180180
#define DNS_SD_NULLABLE _Nullable
181181
#define DNS_SD_NONNULL _Nonnull
182182
#else

0 commit comments

Comments
 (0)