From ec3e84a6c17c344a641cbdaae6e9cebd3ec99867 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Sun, 28 Sep 2014 11:04:22 -0700 Subject: [PATCH] Added missing SAL defines. --- include/compat/mingw/sal.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/include/compat/mingw/sal.h b/include/compat/mingw/sal.h index a2165e8..acfcbc5 100644 --- a/include/compat/mingw/sal.h +++ b/include/compat/mingw/sal.h @@ -1,9 +1,11 @@ #pragma once -#if __GNUC__ >=3 -#pragma GCC system_header +#if __GNUC__ >= 3 +# pragma GCC system_header #endif +#define __SAL_H_FULL_VER 1 + //#define __null // << Conflicts with GCC internal type __null #define __notnull #define __maybenull @@ -27,7 +29,7 @@ #define __exceptthat #define __execeptthat #define __inner_success(expr) -#define __inner_checkReturn +#define __inner_checkReturn __attribute__((warn_unused_result)) #define __inner_typefix(ctype) #define __inner_override #define __inner_callback @@ -235,7 +237,7 @@ #define __nullterminated #define __nullnullterminated #define __reserved -#define __checkReturn +#define __checkReturn __inner_checkReturn #define __typefix(ctype) #define __override #define __callback @@ -245,9 +247,9 @@ #define __data_entrypoint(category) #ifndef __fallthrough - #define __fallthrough __inner_fallthrough +# define __fallthrough __inner_fallthrough #endif #ifndef __analysis_assume - #define __analysis_assume(expr) +# define __analysis_assume(expr) #endif