Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F145563041
D47930.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
924 B
Referenced Files
None
Subscribers
None
D47930.diff
View Options
diff --git a/contrib/libxo/libxo/xo.h b/contrib/libxo/libxo/xo.h
--- a/contrib/libxo/libxo/xo.h
+++ b/contrib/libxo/libxo/xo.h
@@ -27,6 +27,10 @@
#include <stdlib.h>
#include <errno.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#ifdef __dead2
#define NORETURN __dead2
#else
@@ -699,4 +703,8 @@
void
xo_retain_clear (const char *fmt);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* INCLUDE_XO_H */
diff --git a/contrib/libxo/libxo/xo_encoder.h b/contrib/libxo/libxo/xo_encoder.h
--- a/contrib/libxo/libxo/xo_encoder.h
+++ b/contrib/libxo/libxo/xo_encoder.h
@@ -20,6 +20,10 @@
#include <string.h>
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
/*
* Expose libxo's memory allocation functions
*/
@@ -167,4 +171,8 @@
void
xo_failure (xo_handle_t *xop, const char *fmt, ...);
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* XO_ENCODER_H */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 22, 1:02 PM (18 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28937639
Default Alt Text
D47930.diff (924 B)
Attached To
Mode
D47930: contrib/libxo: fix API header files inclusions in C++ source files
Attached
Detach File
Event Timeline
Log In to Comment