brzeszczot

brzeszczot.git
git clone git://git.lenczewski.org/brzeszczot.git
Log | Files | Refs

commit 2d2fa993141c126abaa53ff6182f577de5d79dfd
parent 534459ac04b07611e39a7e88a07c541751327490
Author: MikoĊ‚aj Lenczewski <mblenczewski@gmail.com>
Date:   Sun, 12 Feb 2023 00:09:56 +0000

Fix __CPLUSPLUS include guard to __cplusplus as per c++ standard

Diffstat:
Minclude/common.h | 10+++++-----
Minclude/test.h | 8++++----
Minclude/utils.h | 8++++----
3 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/include/common.h b/include/common.h @@ -1,11 +1,11 @@ #ifndef COMMON_H #define COMMON_H -#ifdef __CPLUSPLUS +#ifdef __cplusplus extern "C" { -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ -#ifdef __CPLUSPLUS +#ifdef __cplusplus #include <cassert> #include <cerrno> #include <cfloat> @@ -119,8 +119,8 @@ do { \ #define dbglog(...) #endif -#ifdef __CPLUSPLUS +#ifdef __cplusplus }; -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ #endif /* COMMON_H */ diff --git a/include/test.h b/include/test.h @@ -3,9 +3,9 @@ #include "common.h" -#ifdef __CPLUSPLUS +#ifdef __cplusplus extern "C" { -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ #define TEST_PASS() return 1; #define TEST_FAIL() return 0; @@ -33,8 +33,8 @@ if (!(cond)) { _TEST_ASSERT_IMPL(cond, msg); TEST_FAIL() } #define TEST_EXPECT(cond, msg) \ if (!(cond)) { _TEST_ASSERT_IMPL(cond, msg); } -#ifdef __CPLUSPLUS +#ifdef __cplusplus }; -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ #endif /* TEST_H */ diff --git a/include/utils.h b/include/utils.h @@ -3,9 +3,9 @@ #include "common.h" -#ifdef __CPLUSPLUS +#ifdef __cplusplus extern "C" { -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ struct str_view { char *ptr; @@ -142,8 +142,8 @@ mem_pool_alloc(struct mem_pool *self, u64 alignment, u64 size) { return ptr; } -#ifdef __CPLUSPLUS +#ifdef __cplusplus }; -#endif /* __CPLUSPLUS */ +#endif /* __cplusplus */ #endif /* UTILS_H */