Skip to content

Commit 7fefd3f

Browse files
committed
fix: lz4 compatibility
1 parent 40ad5a0 commit 7fefd3f

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

lib/lz4/lz4.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,8 @@
116116
#include "lz4.h"
117117
/* see also "memory routines" below */
118118

119+
#include <compiler.h>
120+
119121

120122
/*-************************************
121123
* Compiler Options

lib/lz4/lz4frame.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
# pragma warning(disable : 4127) /* disable: C4127: conditional expression is constant */
5050
#endif
5151

52+
#include <compiler.h>
53+
5254

5355
/*-************************************
5456
* Tuning parameters
@@ -344,7 +346,9 @@ size_t LZ4F_getBlockSize(LZ4F_blockSizeID_t blockSizeID)
344346
/*-************************************
345347
* Private functions
346348
**************************************/
349+
#ifndef MIN
347350
#define MIN(a,b) ( (a) < (b) ? (a) : (b) )
351+
#endif
348352

349353
static BYTE LZ4F_headerChecksum (const void* header, size_t length)
350354
{

lib/lz4/lz4hc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@
5454
#include "lz4hc.h"
5555
#include <limits.h>
5656

57+
#include <compiler.h>
58+
5759

5860
/*=== Shared lz4.c code ===*/
5961
#ifndef LZ4_SRC_INCLUDED

0 commit comments

Comments
 (0)