ReactOS
0.4.16-dev-456-ga97fcf1
gcc_sal.h
Go to the documentation of this file.
1
/*
2
* PROJECT: ReactOS PSDK
3
* LICENSE: MIT (https://spdx.org/licenses/MIT)
4
* PURPOSE: Standard Annotation Language (SAL) definitions - GCC overrides
5
* COPYRIGHT: 2021 - Jérôme Gardou
6
*/
7
8
#pragma once
9
10
#ifndef __GNUC__
11
#error "Not for your compiler!"
12
#endif
13
14
#ifndef __has_attribute
15
#pragma GCC warning "GCC without __has_attribute, no SAL niceties for you"
16
#define __has_attribute(__x) 0
17
#endif
18
19
#ifndef _GCC_NO_SAL_ATTRIIBUTES
20
#if __has_attribute(warn_unused_result)
21
# undef _Must_inspect_result_
22
/* FIXME: Not really equivalent */
23
# define _Must_inspect_result_ __attribute__((__warn_unused_result__))
24
# undef _Check_return_
25
/* This one is 1:1 equivalent */
26
# define _Check_return_ __attribute__((__warn_unused_result__))
27
#endif
28
#endif
// _GCC_NO_SAL_ATTRIIBUTES
sdk
include
vcruntime
gcc_sal.h
Generated on Mon Jan 13 2025 06:12:50 for ReactOS by
1.9.6