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