| IMAGE_DLL_CHARACTERISTICS_NX_COMPAT)
#if defined(TARGET_IS_i386pe) || ! defined(DLL_SUPPORT)
-#define PE_DEF_SUBSYSTEM 3
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_CUI
#else
#undef NT_EXE_IMAGE_BASE
#undef PE_DEF_SECTION_ALIGNMENT
#if defined(TARGET_IS_armpe)
#define PE_DEF_SECTION_ALIGNMENT 0x00001000
-#define PE_DEF_SUBSYSTEM 2
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_GUI
#elif defined(TARGET_IS_arm_wince_pe)
#define PE_DEF_SECTION_ALIGNMENT 0x00001000
-#define PE_DEF_SUBSYSTEM 9
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_CE_GUI
#else
#define PE_DEF_SECTION_ALIGNMENT 0x00000400
-#define PE_DEF_SUBSYSTEM 2
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_GUI
#endif
#define PE_DEF_FILE_ALIGNMENT 0x00000200
#endif
| IMAGE_DLL_CHARACTERISTICS_NX_COMPAT)
#if defined(TARGET_IS_i386pep) || defined(COFF_WITH_peAArch64) || ! defined(DLL_SUPPORT)
-#define PE_DEF_SUBSYSTEM 3
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_CUI
#undef NT_EXE_IMAGE_BASE
#define NT_EXE_IMAGE_BASE \
((bfd_vma) (${move_default_addr_high} ? 0x100400000LL \
((bfd_vma) (${move_default_addr_high} ? 0x0ffff0000LL \
: 0x0ffc0000LL))
#undef PE_DEF_SECTION_ALIGNMENT
-#define PE_DEF_SUBSYSTEM 2
+#define PE_DEF_SUBSYSTEM IMAGE_SUBSYSTEM_WINDOWS_GUI
#undef PE_DEF_FILE_ALIGNMENT
#define PE_DEF_FILE_ALIGNMENT 0x00000200
#define PE_DEF_SECTION_ALIGNMENT 0x00000400