mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 01:24:38 +00:00
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:
parent
ddaabb16b4
commit
f6cf8905f8
4 changed files with 17 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue