Do not use compound literals when used with C++
diff --git a/example.h b/example.h
index b5bcf4b..73c7cc0 100644
--- a/example.h
+++ b/example.h
@@ -13,8 +13,19 @@
 #ifndef qcborExample_h
 #define qcborExample_h
 
+#ifdef __cplusplus
+extern "C" {
+#if 0
+} /* Keep editor indention formatting happy */
+#endif
+#endif
+
 #include <stdint.h>
 
 int32_t RunQCborExample(void);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* qcborExample_h */