From 724d66b9a8510edbd2a54d2f7780c937a333b01a Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 23 Dec 2012 21:33:48 +0000 Subject: [PATCH 1/1] [PSEH] Add _SEH2_VOLATILE macro, that expands to volatile on gcc. This is to mark variables as volatile, if neccessary. svn path=/trunk/; revision=57982 --- reactos/include/reactos/libs/pseh/pseh2.h | 3 +++ reactos/include/reactos/libs/pseh/pseh3.h | 1 + 2 files changed, 4 insertions(+) diff --git a/reactos/include/reactos/libs/pseh/pseh2.h b/reactos/include/reactos/libs/pseh/pseh2.h index f74805d8fe8..fc640cc8a22 100644 --- a/reactos/include/reactos/libs/pseh/pseh2.h +++ b/reactos/include/reactos/libs/pseh/pseh2.h @@ -35,6 +35,7 @@ #define _SEH2_AbnormalTermination() (AbnormalTermination()) #define _SEH2_YIELD(STMT_) STMT_ #define _SEH2_LEAVE __leave +#define _SEH2_VOLATILE #elif defined(_USE_DUMMY_PSEH) || defined (__arm__) || defined(__clang__) || defined(_M_AMD64) @@ -47,6 +48,7 @@ #define _SEH2_AbnormalTermination() #define _SEH2_YIELD(STMT_) STMT_ #define _SEH2_LEAVE +#define _SEH2_VOLATILE volatile #elif defined(_USE_PSEH3) @@ -62,6 +64,7 @@ #define _SEH2_AbnormalTermination _abnormal_termination #define _SEH2_LEAVE _SEH3_LEAVE #define _SEH2_YIELD(x) x +#define _SEH2_VOLATILE volatile #elif defined(__GNUC__) diff --git a/reactos/include/reactos/libs/pseh/pseh3.h b/reactos/include/reactos/libs/pseh/pseh3.h index 14d1fd3d3be..78e248755ed 100644 --- a/reactos/include/reactos/libs/pseh/pseh3.h +++ b/reactos/include/reactos/libs/pseh/pseh3.h @@ -290,3 +290,4 @@ void * __cdecl __attribute__((error("Can only be used inside an exception filter #define _SEH3_LEAVE goto _SEH3$_l_AfterTry +#define _SEH3_VOLATILE volatile -- 2.17.1