summaryrefslogtreecommitdiff
path: root/common/quic_config.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-19 22:58:36 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-02 11:24:44 +0200
commit60373e01fa9273751b037998329645072e21e837 (patch)
tree148aaaa1cc1ceed9f7a40098267564f7b633f882 /common/quic_config.h
parent06c83ca99458f611d871936c9d1bf433703a8f05 (diff)
common: add extern "C" guards to headers
Since some spice C++ code is using code from common/, the C functions need to be marked as such for the C++ compiler, otherwise we'll get linkage issues.
Diffstat (limited to 'common/quic_config.h')
-rw-r--r--common/quic_config.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/quic_config.h b/common/quic_config.h
index 1273dbc..da5e51c 100644
--- a/common/quic_config.h
+++ b/common/quic_config.h
@@ -21,6 +21,10 @@
#include <spice/types.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef __GNUC__
#include <string.h>
@@ -47,5 +51,9 @@
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif