changeset 162:3e63d94b495f

Forgot to add __cplusplus things
author David Demelier <markand@malikania.fr>
date Mon, 03 Sep 2012 21:40:04 +0200
parents 81d64d4a5473
children 66d317ba4b80
files pack.h
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pack.h	Mon Sep 03 21:21:33 2012 +0200
+++ b/pack.h	Mon Sep 03 21:40:04 2012 +0200
@@ -52,6 +52,10 @@
 	((int) pack_swap32((int) (((x) << 32) >> 32))) << 32)	\
 	    | (int) pack_swap32((int) ((x) >> 32)))
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 long	pack_write(short, const char *, const char *, ...);
 long	pack_vwrite(short, const char *, const char *, va_list);
 long	pack_fwrite(short, FILE *, const char *, ...);
@@ -68,4 +72,8 @@
 long	pack_sread(short, const char *, size_t, const char *, ...);
 long	pack_vsread(short, const char *, size_t, const char *, va_list);
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _PACK_H_ */