diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-19 22:58:36 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-21 15:09:27 +0300 |
commit | 6bd492fa7975b90a3be31c65ba1fbafdd0002f0f (patch) | |
tree | f2a566ef234af22cd630f7a26c983af3a02c4565 /common/quic.h | |
parent | 3dab7bda53901a80e15b98392fb8948b2f298ca1 (diff) | |
download | spice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.tar.gz spice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.tar.xz spice-6bd492fa7975b90a3be31c65ba1fbafdd0002f0f.zip |
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.h')
-rw-r--r-- | common/quic.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |