put stdbool.h in hammer.h to try and fix perl bindings on travis

This commit is contained in:
Meredith L. Patterson 2013-12-06 04:52:30 +01:00
parent 4b86fa1f5a
commit 85000da581
2 changed files with 5 additions and 4 deletions

View file

@ -10,6 +10,6 @@ WriteMakefile(
LIBS => ["-lhammer"], LIBS => ["-lhammer"],
OBJECT => 'hammer_wrap.o', OBJECT => 'hammer_wrap.o',
INC => '-I../..', INC => '-I../..',
CCFLAGS => "$Config{ccflags} -DSWIG -DHAMMER_INTERNAL__NO_STDARG_H -std=gnu99", CCFLAGS => "$Config{ccflags} -DSWIG -std=gnu99",
); );

View file

@ -34,9 +34,10 @@ extern "C" {
#endif #endif
#ifndef __cplusplus #ifndef __cplusplus
#ifndef HAMMER_INTERNAL__NO_STDARG_H #include <stdbool.h>
typedef int bool; //#ifndef HAMMER_INTERNAL__NO_STDARG_H
#endif // HAMMER_INTERNAL__NO_STDARG_H //typedef int bool;
//#endif // HAMMER_INTERNAL__NO_STDARG_H
#endif #endif
typedef struct HParseState_ HParseState; typedef struct HParseState_ HParseState;