diff --git a/src/bindings/perl/Makefile.PL b/src/bindings/perl/Makefile.PL index c9bf9db947a5cd9637de62b816574b7fb0e77009..4e457fcd77e2ee230aeccf79080e073d4f6eb493 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 e536c0b1afc6fa622919a04b3d2e793d52a580d0..771577471bc43e1aa29989b111606f3bdc588165 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;