summaryrefslogtreecommitdiff
path: root/deps/timeout/timeout.h
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2024-04-22 14:23:45 +0800
committerluwenpeng <[email protected]>2024-04-22 14:23:50 +0800
commitdd32f0f231ae1e003c21c611731ff78b7b041c1a (patch)
tree0efa4fa73762d35a7aa8db58bfceff7ba812985a /deps/timeout/timeout.h
parentbb7d7410c99704e2613d5902911b33676f14334b (diff)
Enhancement: Improve error handling in stellar's packet API by checking return values of metadata functions and adding descriptive error logging
Diffstat (limited to 'deps/timeout/timeout.h')
-rw-r--r--deps/timeout/timeout.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/deps/timeout/timeout.h b/deps/timeout/timeout.h
index 2c7fccb..40eaafb 100644
--- a/deps/timeout/timeout.h
+++ b/deps/timeout/timeout.h
@@ -26,6 +26,11 @@
#ifndef TIMEOUT_H
#define TIMEOUT_H
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <stdbool.h> /* bool */
#include <stdio.h> /* FILE */
@@ -259,4 +264,8 @@ TIMEOUT_PUBLIC struct timeout *timeouts_next(struct timeouts *, struct timeouts_
#define timeouts_addf(T, to, timeout) \
timeouts_add((T), (to), timeouts_f2i((T), (timeout)))
+#ifdef __cplusplus
+}
+#endif
+
#endif /* TIMEOUT_H */