Fix linking due to clashing xxhash defines between LZ and Zstd.

Probably would be better to use XXH_PRIVATE_API instead, but that requires xxhash.c to have that exact name without prefixes.
This commit is contained in:
Aras Pranckevicius
2017-04-11 10:27:33 +03:00
parent 02cd03845b
commit f6baaa2102
4 changed files with 4 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ You can contact the author at :
#include "lz4.h"
#include "lz4hc.h"
#define XXH_STATIC_LINKING_ONLY
#define XXH_NAMESPACE lz
#include "xxhash.h"

View File

@@ -105,6 +105,7 @@ static void XXH_free (void* p) { free(p); }
static void* XXH_memcpy(void* dest, const void* src, size_t size) { return memcpy(dest,src,size); }
#define XXH_STATIC_LINKING_ONLY
#define XXH_NAMESPACE lz
#include "xxhash.h"

View File

@@ -63,6 +63,7 @@ You can contact the author at :
#include "lz5frame_static.h"
#include "lz5.h"
#include "lz5hc.h"
#define XXH_NAMESPACE lz
#include "xxhash.h"

View File

@@ -106,6 +106,7 @@ You can contact the author at :
/**************************************
* Includes & Memory related functions
***************************************/
#define XXH_NAMESPACE lz
#include "xxhash.h"
/* Modify the local functions below should you wish to use some other memory routines */
/* for malloc(), free() */