Skip to content

Commit e202420

Browse files
committed
[VCRUNTIME] Allow disabling GCC attributes for SAL
1 parent 764cb5b commit e202420

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sdk/include/vcruntime/gcc_sal.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define __has_attribute(__x) 0
1717
#endif
1818

19+
#ifndef _GCC_NO_SAL_ATTRIIBUTES
1920
#if __has_attribute(warn_unused_result)
2021
# undef _Must_inspect_result_
2122
/* FIXME: Not really equivalent */
@@ -24,3 +25,4 @@
2425
/* This one is 1:1 equivalent */
2526
# define _Check_return_ __attribute__((__warn_unused_result__))
2627
#endif
28+
#endif // _GCC_NO_SAL_ATTRIIBUTES

0 commit comments

Comments
 (0)