Skip to content

Commit ccf9028

Browse files
authored
Merge pull request #8075 from hughbe/clang-cl-sourcekit
2 parents 9afe41b + 89330bd commit ccf9028

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)