diff --git a/reactos/tools/wrc/newstruc.c b/reactos/tools/wrc/newstruc.c index 9129caa181a..f0774ea1cd3 100644 --- a/reactos/tools/wrc/newstruc.c +++ b/reactos/tools/wrc/newstruc.c @@ -325,8 +325,11 @@ static int convert_bitmap(char *data, int size) { type |= FL_SIZEBE | FL_OS2; } - else + else + { + fprintf(stderr, "bisizel %d bosizel %d b4sizel %d\n", bisizel, bosizel, b4sizel); yyerror("Invalid bitmap format, bih->biSize = %ld", bih->biSize); + } switch(type) { diff --git a/reactos/tools/wrc/wrc.mak b/reactos/tools/wrc/wrc.mak index c8ba46bf212..5f3992b1b63 100644 --- a/reactos/tools/wrc/wrc.mak +++ b/reactos/tools/wrc/wrc.mak @@ -54,6 +54,9 @@ WRC_OBJECTS = \ WRC_HOST_CFLAGS = -I$(WRC_BASE) $(TOOLS_CFLAGS) \ -D__USE_W32API -DWINE_UNICODE_API= \ + -DDWORD="unsigned int" -DDWORD_DEFINED \ + -DLONG="int" -DULONG="unsigned int" \ + -DPULONG="unsigned int *" -DLONG_DEFINED \ -Dwchar_t="unsigned short" -D_WCHAR_T_DEFINED \ -I$(UNICODE_BASE) -I$(WPP_BASE) \ -Iinclude/wine -Iinclude -Iw32api/include diff --git a/reactos/w32api/include/windef.h b/reactos/w32api/include/windef.h index 9260130ce56..c22beffa55a 100644 --- a/reactos/w32api/include/windef.h +++ b/reactos/w32api/include/windef.h @@ -222,7 +222,11 @@ extern "C" { #define _finally __finally #endif -typedef unsigned long DWORD; +#ifndef DWORD_DEFINED +#define DWORD_DEFINED + typedef unsigned long DWORD; +#endif//DWORD_DEFINED + typedef int WINBOOL,*PWINBOOL,*LPWINBOOL; /* FIXME: Is there a good solution to this? */ #ifndef XFree86Server diff --git a/reactos/w32api/include/winnt.h b/reactos/w32api/include/winnt.h index 7b295bc0a88..3e28543a0c7 100644 --- a/reactos/w32api/include/winnt.h +++ b/reactos/w32api/include/winnt.h @@ -52,11 +52,14 @@ extern "C" { #endif typedef char CHAR; typedef short SHORT; -typedef long LONG; +#ifndef LONG_DEFINED +#define LONG_DEFINED + typedef long LONG; + typedef unsigned long ULONG,*PULONG; +#endif//LONG_DEFINED typedef char CCHAR, *PCCHAR; typedef unsigned char UCHAR,*PUCHAR; typedef unsigned short USHORT,*PUSHORT; -typedef unsigned long ULONG,*PULONG; typedef char *PSZ; typedef void *PVOID,*LPVOID;