put stdbool.h in hammer.h to try and fix perl bindings on travis
This commit is contained in:
parent
4b86fa1f5a
commit
85000da581
2 changed files with 5 additions and 4 deletions
|
|
@ -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",
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue