mirror of
https://github.com/reactos/reactos.git
synced 2024-07-30 08:08:56 +00:00
Cross-compilation fixes.
svn path=/trunk/; revision=7449
This commit is contained in:
parent
0386197096
commit
7babf71f1f
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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
|
||||
|
|
27
reactos/tools/winebuild/winglue.h
Normal file
27
reactos/tools/winebuild/winglue.h
Normal 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 */
|
Loading…
Reference in a new issue