1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
diff --git a/libgputils/gpcoffgen.h b/libgputils/gpcoffgen.h
index 41d3f89..8ee08b9 100644
--- a/libgputils/gpcoffgen.h
+++ b/libgputils/gpcoffgen.h
@@ -88,7 +88,7 @@ extern gp_reloc_t *gp_coffgen_add_reloc(gp_section_t *Section);
#define RELOC_DISABLE_WARN (1 << 0)
#define RELOC_ENABLE_CINIT_WARN (1 << 1)
-extern void gp_coffgen_check_relocations(const gp_object_t *Object, unsigned int Behavior);
+extern void gp_coffgen_check_relocations(const gp_object_t *Object, gp_boolean Behavior);
extern gp_boolean gp_coffgen_del_reloc(gp_section_t *Section, gp_reloc_t *Relocation);
extern const char *gp_coffgen_reloc_type_to_str(uint16_t Type);
diff --git a/libgputils/gptypes.h b/libgputils/gptypes.h
index 95eb609..3067bd0 100644
--- a/libgputils/gptypes.h
+++ b/libgputils/gptypes.h
@@ -26,10 +26,9 @@ Boston, MA 02111-1307, USA. */
#include "stdhdr.h"
-typedef enum {
- false = (0 == 1),
- true = (0 == 0)
-} gp_boolean;
+#include <stdbool.h>
+
+typedef bool gp_boolean;
typedef long gp_symvalue_t;
|