Replace some negative enum constants with "static const unsigned" vars.

This commit is contained in:
Markus F.X.J. Oberhumer
2017-01-03 12:57:10 +01:00
parent 5d3be8da1d
commit 14710dea55
2 changed files with 9 additions and 0 deletions
+4
View File
@@ -35,9 +35,13 @@
#ifdef WANT_MACH_HEADER_ENUM /*{*/
#undef WANT_MACH_HEADER_ENUM
# if 0
enum { // magic
MH_MAGIC = 0xfeedface
};
# else
static const unsigned MH_MAGIC = 0xfeedface;
# endif
enum { // cputype
CPU_TYPE_I386 = 7,
CPU_TYPE_X86_64 = 0x01000007,