# HG changeset patch # User David Demelier # Date 1346701204 -7200 # Node ID 3e63d94b495f174c1436299f02cda8a08b286366 # Parent 81d64d4a54732df2d0a6dc88bbcdcc71d5e21b97 Forgot to add __cplusplus things diff -r 81d64d4a5473 -r 3e63d94b495f pack.h --- 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_ */