aboutsummaryrefslogtreecommitdiff
path: root/dec
diff options
context:
space:
mode:
authorZoltan Szabadka <szabadka@google.com>2015-10-01 14:30:22 +0200
committerZoltan Szabadka <szabadka@google.com>2015-10-01 14:30:22 +0200
commit3b8bef70a5a7e74bfd5178ac9486ea1ccc2dc005 (patch)
tree243547aad073ca4f73881b253432d9cdaee81db1 /dec
parentd4cc4f8f6f3eb6fe245c100fae26775638061f4f (diff)
downloadbrotli-3b8bef70a5a7e74bfd5178ac9486ea1ccc2dc005.zip
brotli-3b8bef70a5a7e74bfd5178ac9486ea1ccc2dc005.tar.gz
brotli-3b8bef70a5a7e74bfd5178ac9486ea1ccc2dc005.tar.bz2
Add extern "C" linkage to the encoder and decoder dictionary definitions.
Diffstat (limited to 'dec')
-rw-r--r--dec/dictionary.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/dec/dictionary.c b/dec/dictionary.c
index 7848c55..4033ae9 100644
--- a/dec/dictionary.c
+++ b/dec/dictionary.c
@@ -15,6 +15,10 @@
#include "./dictionary.h"
+#if defined(__cplusplus) || defined(c_plusplus)
+extern "C" {
+#endif
+
/* In case of multiple definition linker error with dictionary.cc from the
encoder: include only one of enc/dictionary.cc or dec/dictionary.c in a
target using both enc and dec. */
@@ -9465,3 +9469,7 @@ const uint8_t kBrotliDictionary[122784] = {
0x88, 0xe0, 0xa4, 0xb8, 0xe0, 0xa4, 0x95, 0xe0, 0xa5, 0x8d, 0xe0, 0xa4, 0xb0,
0xe0, 0xa4, 0xbf, 0xe0, 0xa4, 0xaf, 0xe0, 0xa4, 0xa4, 0xe0, 0xa4, 0xbe,
};
+
+#if defined(__cplusplus) || defined(c_plusplus)
+} /* extern "C" */
+#endif