Author: greatlrd
Date: Sat Sep 30 14:52:41 2006
New Revision: 24312
URL:
http://svn.reactos.org/svn/reactos?rev=24312&view=rev
Log:
fix build of blue again gcc does not have _disable and _enable, but MSVC have it.
Modified:
trunk/reactos/include/ddk/winddk.h
Modified: trunk/reactos/include/ddk/winddk.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/ddk/winddk.h?rev=2…
==============================================================================
--- trunk/reactos/include/ddk/winddk.h (original)
+++ trunk/reactos/include/ddk/winddk.h Sat Sep 30 14:52:41 2006
@@ -29,6 +29,12 @@
#ifdef __cplusplus
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
/*