summaryrefslogtreecommitdiff
path: root/taia.h
diff options
context:
space:
mode:
authorFelix von Leitner <felix-libowfat@fefe.de>2012-02-07 17:02:40 +0000
committerFelix von Leitner <felix-libowfat@fefe.de>2012-02-07 17:02:40 +0000
commitcf46170dc7da0f34b1e17618b9df3804b2dfcf45 (patch)
treef80b409c7e72b4df6882cc67a22c21f5868fb63e /taia.h
parent24c6e42b3c86db231afe6441bc3f292de00f3fda (diff)
downloadlibowfat-cf46170dc7da0f34b1e17618b9df3804b2dfcf45.tar.gz
libowfat-cf46170dc7da0f34b1e17618b9df3804b2dfcf45.zip
make headers work in C++
add two more variable length integer encoding functions
Diffstat (limited to 'taia.h')
-rw-r--r--taia.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/taia.h b/taia.h
index fd68633..ee4c8a9 100644
--- a/taia.h
+++ b/taia.h
@@ -7,6 +7,10 @@
#include "tai.h"
#include "uint32.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/* A struct taia value is a number between 0 inclusive and 2^64
* exclusive. The number is a multiple of 10^-18. The format of struct
* taia is designed to speed up common operations; applications should
@@ -67,4 +71,8 @@ unsigned int taia_fmtfrac(char *s,const tai6464 *t);
/* initialize t to secs seconds. */
void taia_uint(tai6464 *t,unsigned int secs);
+#ifdef __cplusplus
+}
+#endif
+
#endif