Skip to content

Commit 844c53e

Browse files
authored
Merge pull request #2977 from felixhandte/fix-2950
Remove Dependencies to Allow the Zstd Binary to Dynamically Link to the Library
2 parents 26d88c0 + 4bd96a6 commit 844c53e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

programs/benchzstd.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,14 @@
3131
#include "timefn.h" /* UTIL_time_t */
3232
#include "benchfn.h"
3333
#include "../lib/common/mem.h"
34+
#ifndef ZSTD_STATIC_LINKING_ONLY
3435
#define ZSTD_STATIC_LINKING_ONLY
36+
#endif
3537
#include "../lib/zstd.h"
3638
#include "datagen.h" /* RDG_genBuffer */
39+
#ifndef XXH_INLINE_ALL
40+
#define XXH_INLINE_ALL
41+
#endif
3742
#include "../lib/common/xxhash.h"
3843
#include "benchzstd.h"
3944
#include "../lib/zstd_errors.h"

programs/dibio.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
#include "timefn.h" /* UTIL_time_t, UTIL_clockSpanMicro, UTIL_getTime */
3333
#include "../lib/common/mem.h" /* read */
34-
#include "../lib/common/error_private.h"
3534
#include "dibio.h"
3635

3736

0 commit comments

Comments
 (0)