Skip to content

Commit 89330bd

Browse files
committed
Fix sourcekit attributes when compiling with clang-cl
1 parent 674bbd3 commit 89330bd

File tree

1 file changed

+1
-1
lines changed
  • tools/SourceKit/tools/sourcekitd/include/sourcekitd

1 file changed

+1
-1
lines changed

tools/SourceKit/tools/sourcekitd/include/sourcekitd/sourcekitd.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
# define SOURCEKITD_HAS_BLOCKS 0
7171
#endif
7272

73-
#ifdef __GNUC__
73+
#if defined(__clang__) || defined(__GNUC__)
7474
# define SOURCEKITD_WARN_RESULT __attribute__((__warn_unused_result__))
7575
# define SOURCEKITD_NONNULL1 __attribute__((__nonnull__(1)))
7676
# define SOURCEKITD_NONNULL2 __attribute__((__nonnull__(2)))

0 commit comments

Comments
 (0)