Author: ktietz
Date: Sat Feb 27 11:31:01 2010
New Revision: 45692
URL:
http://svn.reactos.org/svn/reactos?rev=45692&view=rev
Log:
Add __GNU_EXTENSION macro for enabling gcc's extension on demand.
Modified:
branches/header-work/include/ddk/wdm.h
Modified: branches/header-work/include/ddk/wdm.h
URL:
http://svn.reactos.org/svn/reactos/branches/header-work/include/ddk/wdm.h?r…
==============================================================================
--- branches/header-work/include/ddk/wdm.h [iso-8859-1] (original)
+++ branches/header-work/include/ddk/wdm.h [iso-8859-1] Sat Feb 27 11:31:01 2010
@@ -1,5 +1,14 @@
#ifndef _WDMDDK_
#define _WDMDDK_
+
+/* Helper macro to enable gcc's extension. */
+#ifndef __GNU_EXTENSION
+#ifdef __GNUC__
+#define __GNU_EXTENSION __extension__
+#else
+#define __GNU_EXTENSION
+#endif
+#endif
//
// Dependencies