From 85000da58162715c88debfa97fa725598ca006b3 Mon Sep 17 00:00:00 2001 From: "Meredith L. Patterson" <mlp@thesmartpolitenerd.com> Date: Fri, 6 Dec 2013 04:52:30 +0100 Subject: [PATCH] put stdbool.h in hammer.h to try and fix perl bindings on travis --- src/bindings/perl/Makefile.PL | 2 +- src/hammer.h | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/bindings/perl/Makefile.PL b/src/bindings/perl/Makefile.PL index c9bf9db9..4e457fcd 100644 --- a/src/bindings/perl/Makefile.PL +++ b/src/bindings/perl/Makefile.PL @@ -10,6 +10,6 @@ WriteMakefile( LIBS => ["-lhammer"], OBJECT => 'hammer_wrap.o', INC => '-I../..', - CCFLAGS => "$Config{ccflags} -DSWIG -DHAMMER_INTERNAL__NO_STDARG_H -std=gnu99", + CCFLAGS => "$Config{ccflags} -DSWIG -std=gnu99", ); diff --git a/src/hammer.h b/src/hammer.h index e536c0b1..77157747 100644 --- a/src/hammer.h +++ b/src/hammer.h @@ -34,9 +34,10 @@ extern "C" { #endif #ifndef __cplusplus -#ifndef HAMMER_INTERNAL__NO_STDARG_H -typedef int bool; -#endif // HAMMER_INTERNAL__NO_STDARG_H +#include <stdbool.h> + //#ifndef HAMMER_INTERNAL__NO_STDARG_H + //typedef int bool; + //#endif // HAMMER_INTERNAL__NO_STDARG_H #endif typedef struct HParseState_ HParseState; -- GitLab