[PATCH] Avoid using GCC's typeof extension

Alex Henrie alexhenrie24 at gmail.com
Wed Sep 19 23:30:18 CDT 2018


The typeof keyword is a GCC extension that is not part of any standard
and not available in MSVC. We should probably stop using typeof
everywhere, but these patches just eliminate its use in places where it
is both easy to replace and impossible to avoid via ./configure.

There are two open bug reports about the use of typeof in Wine:
https://bugs.winehq.org/show_bug.cgi?id=20474
https://bugs.winehq.org/show_bug.cgi?id=20476

Alex Henrie (3):
  d3dcompiler_43/tests: Avoid using GCC's typeof extension
  gdi32: Avoid using GCC's typeof extension
  imm32: Avoid using GCC's typeof extension

 dlls/d3dcompiler_43/tests/blob.c       |  6 ++---
 dlls/d3dcompiler_43/tests/reflection.c |  2 +-
 dlls/gdi32/driver.c                    |  6 ++---
 dlls/imm32/imm.c                       | 34 ++++++++++++--------------
 4 files changed, 23 insertions(+), 25 deletions(-)

-- 
2.19.0




More information about the wine-devel mailing list