From f277a57172e2200cc33b86e049323d60922b13a2 Mon Sep 17 00:00:00 2001 From: Benjamin Oldenburg Date: Fri, 20 Mar 2026 17:13:34 +0700 Subject: [PATCH] tccpe.c: remove duplicate IMAGE_DLLCHARACTERISTICS_* defines These macros were defined twice (lines ~273 and ~317) with identical values and #ifndef guards. The duplicates appear to be a copy-paste oversight from adding ARM64 support. Remove the redundant second set of defines. The first set (lines 273-284) already provides the fallback definitions needed when Windows headers are unavailable. --- tccpe.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tccpe.c b/tccpe.c index 69783bb4..b30ca86b 100644 --- a/tccpe.c +++ b/tccpe.c @@ -314,18 +314,6 @@ typedef struct _IMAGE_BASE_RELOCATION { #ifndef IMAGE_REL_BASED_DIR64 # define IMAGE_REL_BASED_DIR64 10 #endif -#ifndef IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA -#define IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA 0x0020 -#endif -#ifndef IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE -#define IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE 0x0040 -#endif -#ifndef IMAGE_DLLCHARACTERISTICS_NX_COMPAT -#define IMAGE_DLLCHARACTERISTICS_NX_COMPAT 0x0100 -#endif -#ifndef IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE -#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000 -#endif #pragma pack(push, 1) struct pe_header