X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Finclude%2Fddk%2Fd3dhal.h;h=d4ecc2ca4e9d82f63f60f2f1bd38de041db36fca;hp=7cbe1e99dc53fc769e2e147bbe126f042533d237;hb=cbdf28bb6ace5e3faec494c5743371d7288f191c;hpb=ffdab4c2f5964308f1d85003eab530371b17b143 diff --git a/reactos/include/ddk/d3dhal.h b/reactos/include/ddk/d3dhal.h index 7cbe1e99dc5..d4ecc2ca4e9 100644 --- a/reactos/include/ddk/d3dhal.h +++ b/reactos/include/ddk/d3dhal.h @@ -22,6 +22,15 @@ #ifndef _D3DHAL_H_ #define _D3DHAL_H_ +/* Helper macro to enable gcc's extension. */ +#ifndef __GNU_EXTENSION +#ifdef __GNUC__ +#define __GNU_EXTENSION __extension__ +#else +#define __GNU_EXTENSION +#endif +#endif + #ifdef __cplusplus extern "C" { #endif @@ -787,7 +796,7 @@ typedef struct _DD_GETD3DQUERYCOUNTDATA typedef struct _DD_GETD3DQUERYDATA { DD_GETDRIVERINFO2DATA gdi2; - union + __GNU_EXTENSION union { DWORD dwQueryIndex; D3DQUERYTYPE QueryType;