mirror of
git://repo.or.cz/tinycc.git
synced 2026-11-05 05:36:35 +08:00
win32: allow self-host with tcc 0.9.27 - part 1 of 2
Commit 03d58b0 ("arm64-win32 support : runtime", 2026-04-04) added
IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE to winnt.h, and it was later
used in tccpe.c, but older tcc like 0.9.27 don't have it.
So define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE is missing.
This commit is contained in:
parent
4ed845d0db
commit
a667b53fcb
5
tccpe.c
5
tccpe.c
@ -292,6 +292,11 @@ typedef struct _IMAGE_BASE_RELOCATION {
|
|||||||
#endif /* ndef IMAGE_NT_SIGNATURE */
|
#endif /* ndef IMAGE_NT_SIGNATURE */
|
||||||
/* ----------------------------------------------------------- */
|
/* ----------------------------------------------------------- */
|
||||||
|
|
||||||
|
#ifndef IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE
|
||||||
|
/* allow self-host build with tcc 0.97 - doesn't have this in winnt.h */
|
||||||
|
#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040
|
||||||
|
#endif
|
||||||
|
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
struct pe_header
|
struct pe_header
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user