Add __GNU_EXTENSION macro for enabling gcc's extension on demand.
authorKai Tietz <ktietz70@googlemail.com>
Sat, 27 Feb 2010 10:31:01 +0000 (10:31 +0000)
committerKai Tietz <ktietz70@googlemail.com>
Sat, 27 Feb 2010 10:31:01 +0000 (10:31 +0000)
svn path=/branches/header-work/; revision=45692

include/ddk/wdm.h

index 4f15233..b15bea4 100644 (file)
@@ -1,6 +1,15 @@
 #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
 //