Skip to content

Commit ce82929

Browse files
committed
feat: add include guard
1 parent 650edca commit ce82929

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

cbindgen.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
language = "C"
22

33
header = "// This file is part of https://github.com/SpringQL/SpringQL-client-c which is licensed under MIT OR Apache-2.0. See file LICENSE-MIT or LICENSE-APACHE for full license details."
4+
5+
include_guard = "_SPRINGQL_H_"

springql.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
// This file is part of https://github.com/SpringQL/SpringQL-client-c which is licensed under MIT OR Apache-2.0. See file LICENSE-MIT or LICENSE-APACHE for full license details.
22

3+
#ifndef _SPRINGQL_H_
4+
#define _SPRINGQL_H_
5+
36
#include <stdarg.h>
47
#include <stdbool.h>
58
#include <stdint.h>
@@ -360,3 +363,5 @@ int spring_last_err(enum SpringErrno *errno,
360363
* - `> 0`: the length of the recent error message.
361364
*/
362365
int spring_last_errmsg_len(void);
366+
367+
#endif /* _SPRINGQL_H_ */

0 commit comments

Comments
 (0)