all: yet more cleanups
Changes include: - use standard names for PE constants - add some more "noexcept" - improve upx_is_integral type-trait - introduce is_same_all and is_same_any type-traits - prepare TE-size checks in packer.h - CI updates
This commit is contained in:
+3
-7
@@ -26,6 +26,7 @@
|
||||
*/
|
||||
|
||||
|
||||
#pragma once
|
||||
#ifndef __UPX_P_MACHO_H
|
||||
#define __UPX_P_MACHO_H 1
|
||||
|
||||
@@ -33,15 +34,10 @@
|
||||
|
||||
__packed_struct(Mach_fat_header)
|
||||
BE32 magic;
|
||||
# if 0
|
||||
enum { // note conflict with java bytecode PackLinuxI386
|
||||
enum : unsigned { // note conflict with java bytecode PackLinuxI386
|
||||
FAT_MAGIC = 0xcafebabe,
|
||||
FAT_MAGIC_SWAB = 0xbebafeca
|
||||
FAT_MAGIC_SWAB = 0xbebafeca,
|
||||
};
|
||||
# else
|
||||
static const unsigned FAT_MAGIC = 0xcafebabe;
|
||||
static const unsigned FAT_MAGIC_SWAB = 0xbebafeca;
|
||||
# endif
|
||||
BE32 nfat_arch; // Number of Mach_fat_arch which follow.
|
||||
__packed_struct_end()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user