Module Name: othersrc
Committed By: agc
Date: Wed Sep 21 05:58:42 UTC 2011
Modified Files:
othersrc/external/bsd/tiger/dist: tiger.h
Log Message:
declaration protection for the header file
To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1 -r1.2 othersrc/external/bsd/tiger/dist/tiger.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: othersrc/external/bsd/tiger/dist/tiger.h
diff -u othersrc/external/bsd/tiger/dist/tiger.h:1.1.1.1 othersrc/external/bsd/tiger/dist/tiger.h:1.2
--- othersrc/external/bsd/tiger/dist/tiger.h:1.1.1.1 Thu Jun 2 15:10:51 2011
+++ othersrc/external/bsd/tiger/dist/tiger.h Wed Sep 21 05:58:42 2011
@@ -29,6 +29,18 @@
#include <inttypes.h>
+#ifndef __BEGIN_DECLS
+# if defined(__cplusplus)
+# define __BEGIN_DECLS extern "C" {
+# define __END_DECLS }
+# else
+# define __BEGIN_DECLS
+# define __END_DECLS
+# endif
+#endif
+
+__BEGIN_DECLS
+
#define TIGER_DIGEST_LENGTH 24
#define TIGER_DIGEST_STRING_LENGTH ((TIGER_DIGEST_LENGTH * 2) + 1)
@@ -48,4 +60,6 @@
char *TIGER_File(char *, char *, int);
char *TIGER_Data(const uint8_t *, size_t, char *, int);
+__END_DECLS
+
#endif