Skip to content

Commit 364fd4f

Browse files
authored
Merge pull request #46 from SpringQL/feat/include-guard
feat: add include guard
2 parents d80188d + ed8b482 commit 364fd4f

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ Also check the changes in springql-core: <https://github.com/SpringQL/SpringQL/b
1313
<!-- markdownlint-disable MD024 -->
1414
## [Unreleased]
1515

16+
## [v0.13.0+2]
17+
18+
### Added
19+
20+
- add include guard to `springql.h`. ([#46](https://github.com/SpringQL/SpringQL-client-c/pull/46))
21+
1622
## [v0.13.0]
1723

1824
### Added

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "springql-client-c"
3-
version = "0.13.0"
3+
version = "0.13.0+2"
44

55
authors = ["Sho Nakatani <lay.sakura@gmail.com>"]
66
license = "MIT OR Apache-2.0"

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)