summaryrefslogtreecommitdiff
path: root/include/hubbub/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/hubbub/errors.h')
-rw-r--r--include/hubbub/errors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/hubbub/errors.h b/include/hubbub/errors.h
index 607c06b..ee7870a 100644
--- a/include/hubbub/errors.h
+++ b/include/hubbub/errors.h
@@ -8,6 +8,11 @@
#ifndef hubbub_errors_h_
#define hubbub_errors_h_
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <stddef.h>
typedef enum hubbub_error {
@@ -28,5 +33,9 @@ typedef enum hubbub_error {
/* Convert a hubbub error value to a string */
const char *hubbub_error_to_string(hubbub_error error);
+#ifdef __cplusplus
+}
+#endif
+
#endif