summaryrefslogtreecommitdiffstats
path: root/common/mem.h
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-14 21:01:48 +0100
committerMarc-André Lureau <marcandre.lureau@gmail.com>2012-03-20 15:30:23 +0100
commitc4482c7ff2bf441e6a9e06f30f1b247171bb0738 (patch)
treea2ba30dcd9756e77b745af94a6e4fbe304eaba3b /common/mem.h
parente800e51d4ecbae0b0023bd829d0cf9082381fc00 (diff)
downloadspice-common-c4482c7ff2bf441e6a9e06f30f1b247171bb0738.tar.gz
spice-common-c4482c7ff2bf441e6a9e06f30f1b247171bb0738.tar.xz
spice-common-c4482c7ff2bf441e6a9e06f30f1b247171bb0738.zip
Use SPICE_{BEGIN,END}_DECLS
Diffstat (limited to 'common/mem.h')
-rw-r--r--common/mem.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/mem.h b/common/mem.h
index af89ba6..857e8b0 100644
--- a/common/mem.h
+++ b/common/mem.h
@@ -26,9 +26,7 @@
# include <config.h>
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
+SPICE_BEGIN_DECLS
#ifdef STDC_HEADERS
# include <stdlib.h>
@@ -156,7 +154,6 @@ void spice_buffer_append(SpiceBuffer *buffer, const void *data, size_t len);
size_t spice_buffer_copy(SpiceBuffer *buffer, void *dest, size_t len);
size_t spice_buffer_remove(SpiceBuffer *buffer, size_t len);
-#ifdef __cplusplus
-}
-#endif
+SPICE_END_DECLS
+
#endif