summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorW. Felix Handte <w@felixhandte.com>2018-05-22 01:36:49 (GMT)
committerW. Felix Handte <w@felixhandte.com>2018-05-22 02:29:20 (GMT)
commitc746a27e91784adf9957600206a5d35dcdad04b1 (patch)
treef279069a03a2cb9720f1c30142445203e86011d6 /tests
parent843dfd239a7f23cf3f8fd38cd961282a8fcade10 (diff)
downloadlz4-c746a27e91784adf9957600206a5d35dcdad04b1.zip
lz4-c746a27e91784adf9957600206a5d35dcdad04b1.tar.gz
lz4-c746a27e91784adf9957600206a5d35dcdad04b1.tar.bz2
Test Linking C-Compiled Library and C++-Compiled Tests
Diffstat (limited to 'tests')
-rw-r--r--tests/fullbench.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/fullbench.c b/tests/fullbench.c
index c06e230..2818ea2 100644
--- a/tests/fullbench.c
+++ b/tests/fullbench.c
@@ -220,8 +220,16 @@ static int local_LZ4_compress_fast_continue0(const char* in, char* out, int inSi
}
#ifndef LZ4_DLL_IMPORT
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
/* declare hidden function */
-int LZ4_compress_forceExtDict (LZ4_stream_t* LZ4_stream, const char* source, char* dest, int inputSize);
+extern int LZ4_compress_forceExtDict (LZ4_stream_t* LZ4_stream, const char* source, char* dest, int inputSize);
+
+#if defined (__cplusplus)
+}
+#endif
static int local_LZ4_compress_forceDict(const char* in, char* out, int inSize)
{
@@ -289,8 +297,16 @@ static int local_LZ4_decompress_safe_usingDict(const char* in, char* out, int in
}
#ifndef LZ4_DLL_IMPORT
+#if defined (__cplusplus)
+extern "C" {
+#endif
+
extern int LZ4_decompress_safe_forceExtDict(const char* in, char* out, int inSize, int outSize, const void* dict, size_t dictSize);
+#if defined (__cplusplus)
+}
+#endif
+
static int local_LZ4_decompress_safe_forceExtDict(const char* in, char* out, int inSize, int outSize)
{
(void)inSize;