From ce35dd9b7b126186dcaecd337048370682181559 Mon Sep 17 00:00:00 2001 From: Magnus Olsen Date: Sat, 30 Sep 2006 10:52:41 +0000 Subject: [PATCH] fix build of blue again gcc does not have _disable and _enable, but MSVC have it. svn path=/trunk/; revision=24312 --- reactos/include/ddk/winddk.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/reactos/include/ddk/winddk.h b/reactos/include/ddk/winddk.h index 72f5d7156b0..00636ac4155 100644 --- a/reactos/include/ddk/winddk.h +++ b/reactos/include/ddk/winddk.h @@ -31,6 +31,12 @@ extern "C" { #endif +#ifdef __GNUC__ +/* Available as intrinsics on MSVC */ +static __inline void _disable(void) {__asm__ __volatile__("cli\n");} +static __inline void _enable(void) {__asm__ __volatile__("sti\n");} +#endif + /* ** Definitions specific to this Device Driver Kit */