X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Fsafe.h;h=cb962c48065805fb9db5dbd5ce7daa9c6892bc30;hb=2ea09241f07f1dfd4b6fd0f2f296a10142fda7d2;hp=26df90a48f5105e7090e57f776598ab04b9cf08d;hpb=91d8147391efdc4d42cc4e1c171a65c0372a008f;p=babeltrace.git diff --git a/src/common/safe.h b/src/common/safe.h index 26df90a4..cb962c48 100644 --- a/src/common/safe.h +++ b/src/common/safe.h @@ -1,7 +1,16 @@ +/* + * SPDX-License-Identifier: MIT + * + * Copyright 2012 Mathieu Desnoyers + */ #include #include +#ifdef __cplusplus +extern "C" { +#endif + static inline bool bt_safe_to_mul_int64(int64_t a, int64_t b) { @@ -33,3 +42,7 @@ bool bt_safe_to_add_uint64(uint64_t a, uint64_t b) { return a <= UINT64_MAX - b; } + +#ifdef __cplusplus +} +#endif