We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f6bfb4 commit bc54b0bCopy full SHA for bc54b0b
5 files changed
lib/libpe/include/libpe/pe.h
@@ -22,6 +22,7 @@
22
#ifndef LIBPE_H
23
#define LIBPE_H
24
25
+#include <stdint.h>
26
#ifdef __cplusplus
27
extern "C" {
28
#endif
@@ -46,7 +47,10 @@ extern "C" {
46
47
#include "resources.h"
48
#include "utils.h"
49
-#define MAGIC_MZ 0x5a4d // Belongs to the DOS header
50
+static const char __MAGIC_MZ[2] = {'M','Z'};
51
+static const uint16_t MAGIC_MZ = ('Z' <<8) + 'M';
52
+
53
+// #define MAGIC_MZ 0x5a4d // Belongs to the DOS header
54
#define MAX_DIRECTORIES 16
55
#define MAX_SECTIONS 96
56
0 commit comments