Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164926667
D47930.id149398.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
978 B
Referenced Files
None
Subscribers
None
D47930.id149398.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
@@ -20,6 +20,10 @@
#ifndef INCLUDE_XO_H
#define INCLUDE_XO_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#include <stdio.h>
#include <sys/types.h>
#include <stdarg.h>
@@ -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_buf.h b/contrib/libxo/libxo/xo_buf.h
--- a/contrib/libxo/libxo/xo_buf.h
+++ b/contrib/libxo/libxo/xo_buf.h
@@ -19,6 +19,10 @@
#ifndef XO_BUF_H
#define XO_BUF_H
+#ifdef __cplusplus
+extern "C" {
+#endif /* __cplusplus */
+
#define XO_BUFSIZ (8*1024) /* Initial buffer size */
#define XO_BUF_HIGH_WATER (XO_BUFSIZ - 512) /* When to auto-flush */
/*
@@ -160,4 +164,8 @@
xbp->xb_curp += len;
}
+#ifdef __cplusplus
+}
+#endif /* __cplusplus */
+
#endif /* XO_BUF_H */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Aug 5, 9:54 PM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36051735
Default Alt Text
D47930.id149398.diff (978 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