Cross-compilation fixes.

svn path=/trunk/; revision=7449
This commit is contained in:
Filip Navara 2004-01-04 15:50:41 +00:00
parent 0386197096
commit 7babf71f1f
5 changed files with 43 additions and 0 deletions

View file

@ -32,8 +32,12 @@
#include <stdlib.h>
#include <string.h>
#ifdef WIN32
#include "windef.h"
#include "winbase.h"
#else
#include "winglue.h"
#endif
#include "build.h"
int current_line = 0;

View file

@ -37,8 +37,12 @@
#include <sys/mman.h>
#endif
#ifdef WIN32
#include "windef.h"
#include "winbase.h"
#else
#include "winglue.h"
#endif
#include "build.h"
#define ALIGNMENT 2 /* alignment for resource data */

View file

@ -37,8 +37,12 @@
#include <sys/mman.h>
#endif
#ifdef WIN32
#include "windef.h"
#include "winbase.h"
#else
#include "winglue.h"
#endif
#include "build.h"
/* Unicode string or integer id */

View file

@ -30,8 +30,12 @@
#include <stdarg.h>
#include <string.h>
#ifdef WIN32
#include "windef.h"
#include "winbase.h"
#else
#include "winglue.h"
#endif
#if defined(WIN32)
#define EXCEPTION_WINE_STUB 0x80000100 /* stub entry point called */
#define EH_NONCONTINUABLE 0x01

View file

@ -0,0 +1,27 @@
#ifndef _WINGLUE_H
#define _WINGLUE_H
typedef unsigned char BYTE;
typedef unsigned short WORD;
typedef unsigned long DWORD;
typedef unsigned short WCHAR;
#define LOBYTE(w) ((BYTE)(w))
#define HIBYTE(w) ((BYTE)(((WORD)(w)>>8)&0xFF))
#define IMAGE_FILE_DLL 8192
#define IMAGE_SUBSYSTEM_WINDOWS_GUI 2
#define IMAGE_SUBSYSTEM_WINDOWS_CUI 3
#define IMAGE_NUMBEROF_DIRECTORY_ENTRIES 16
#define IMAGE_FILE_MACHINE_I386 332
#define IMAGE_NT_SIGNATURE 0x00004550
#define IMAGE_NT_OPTIONAL_HDR_MAGIC 0x10b
#ifndef max
#define max(a,b) ((a)>(b)?(a):(b))
#endif
#ifndef min
#define min(a,b) ((a)<(b)?(a):(b))
#endif
#endif /* _WINGLUE_H */