aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-10-27 07:18:22 +0200
committerTeddy Wing2018-10-27 07:18:22 +0200
commit1f4222ba73cdc37642672639ba24ce42ccb3a2b8 (patch)
tree9ec021620536cc5afae976032e9704542d92d7fd
parentf2f4e4ad357a2bfdffb6ae5e06f2a211f6d6fbdb (diff)
downloaddome-key-map-1f4222ba73cdc37642672639ba24ce42ccb3a2b8.tar.bz2
cbindgen.toml: Add include guard to header file
-rw-r--r--cbindgen.toml1
-rw-r--r--dome_key_map.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/cbindgen.toml b/cbindgen.toml
index e6404bd..a96748c 100644
--- a/cbindgen.toml
+++ b/cbindgen.toml
@@ -1,5 +1,6 @@
language = "C"
header = "/* Test */"
+include_guard = "DOME_KEY_MAP_H"
include_version = true
# [parse]
diff --git a/dome_key_map.h b/dome_key_map.h
index 6233be7..cc6303b 100644
--- a/dome_key_map.h
+++ b/dome_key_map.h
@@ -1,5 +1,8 @@
/* Test */
+#ifndef DOME_KEY_MAP_H
+#define DOME_KEY_MAP_H
+
/* Generated with cbindgen:0.6.6 */
#include <stdint.h>
@@ -59,3 +62,5 @@ void state_free(State *ptr);
void state_load_map_group(State *ptr);
State *state_new(void);
+
+#endif /* DOME_KEY_MAP_H */