From 60373e01fa9273751b037998329645072e21e837 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Tue, 19 Apr 2011 22:58:36 +0200 Subject: 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. --- common/quic.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common/quic.h') diff --git a/common/quic.h b/common/quic.h index f4ef8543..d0317772 100644 --- a/common/quic.h +++ b/common/quic.h @@ -21,6 +21,10 @@ #include "quic_config.h" +#ifdef __cplusplus +extern "C" { +#endif + typedef enum { QUIC_IMAGE_TYPE_INVALID, QUIC_IMAGE_TYPE_GRAY, @@ -61,5 +65,9 @@ void quic_destroy(QuicContext *quic); void quic_init(); +#ifdef __cplusplus +} +#endif + #endif -- cgit