Took some advice from alex re: w32api headers. Use ..._DEFINED to override

items in the standard headers for different wordsize host.  wrc almost working
on 64-bit host.

svn path=/trunk/; revision=17856
This commit is contained in:
Art Yerkes 2005-09-15 05:58:49 +00:00
parent ddaabb16b4
commit f6cf8905f8
4 changed files with 17 additions and 4 deletions

View file

@ -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)
{

View file

@ -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

View file

@ -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

View file

@ -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;