summaryrefslogtreecommitdiff
path: root/include/parserutils/errors.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/parserutils/errors.h')
-rw-r--r--include/parserutils/errors.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/parserutils/errors.h b/include/parserutils/errors.h
index 74c7f34..6a6aa0b 100644
--- a/include/parserutils/errors.h
+++ b/include/parserutils/errors.h
@@ -8,6 +8,11 @@
#ifndef parserutils_errors_h_
#define parserutils_errors_h_
+#ifdef __cplusplus
+extern "C"
+{
+#endif
+
#include <stddef.h>
typedef enum parserutils_error {
@@ -27,5 +32,9 @@ const char *parserutils_error_to_string(parserutils_error error);
/* Convert a string to a parserutils error value */
parserutils_error parserutils_error_from_string(const char *str, size_t len);
+#ifdef __cplusplus
+}
+#endif
+
#endif