reactos/sdk/include/psdk/sal.h
Jérôme Gardou d1f5c31820 [SDK] Add GCC overrides for SAL annotations
GCC has some functions, variables & type attributes which can be used as aliases
for some of the SAL annotations. Although it's not as rich & precise, it's still useful
since we actually enable -Werror on GCC builds whereas we don't use such an option
on MSVC builds.

For now, _Must_inspect_result_ is aliased to warn_result_unused attribute.
2021-06-28 10:20:57 +02:00

17 lines
342 B
C

/*
* PROJECT: ReactOS PSDK
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Standard Annotation Language (SAL) definitions
* COPYRIGHT: 2021 - Jérôme Gardou
*/
#pragma once
/* Include MS version first */
#include "ms_sal.h"
/* Some overrides with GCC attributes */
#ifdef __GNUC__
#include "gcc_sal.h"
#endif