Merge pull request #346 from djmitche/include-guard
add an include guard to taskchampion.h
This commit is contained in:
@@ -76,6 +76,9 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#ifndef TASKCHAMPION_H
|
||||||
|
#define TASKCHAMPION_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@@ -1009,3 +1012,5 @@ void tc_working_set_free(struct TCWorkingSet *ws);
|
|||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
} // extern "C"
|
} // extern "C"
|
||||||
#endif // __cplusplus
|
#endif // __cplusplus
|
||||||
|
|
||||||
|
#endif /* TASKCHAMPION_H */
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ fn codegen() -> anyhow::Result<()> {
|
|||||||
.with_config(Config {
|
.with_config(Config {
|
||||||
header: Some(include_str!("../../lib/header-intro.h").into()),
|
header: Some(include_str!("../../lib/header-intro.h").into()),
|
||||||
language: Language::C,
|
language: Language::C,
|
||||||
|
include_guard: Some("TASKCHAMPION_H".into()),
|
||||||
cpp_compat: true,
|
cpp_compat: true,
|
||||||
sys_includes: vec!["stdbool.h".into(), "stdint.h".into(), "time.h".into()],
|
sys_includes: vec!["stdbool.h".into(), "stdint.h".into(), "time.h".into()],
|
||||||
usize_is_size_t: true,
|
usize_is_size_t: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user