Fix: add intrin.h under _MSC_VER
This commit is contained in:
parent
c22b1d84d5
commit
29740126da
8
src/external/sdefl.h
vendored
8
src/external/sdefl.h
vendored
|
|
@ -180,6 +180,14 @@ extern int zsdeflate(struct sdefl *s, void *o, const void *i, int n, int lvl);
|
|||
#include <string.h> /* memcpy */
|
||||
#include <limits.h> /* CHAR_BIT */
|
||||
|
||||
/*
|
||||
* @ChrisGrams - In Windows, this header is required and was no longer
|
||||
* included in rcore.c after commit 0b4815b8fe861f8fbeac35f46f7e1ff78891b7b5.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
#define SDEFL_NIL (-1)
|
||||
#define SDEFL_MAX_MATCH 258
|
||||
#define SDEFL_MAX_CODE_LEN (15)
|
||||
|
|
|
|||
8
src/external/sinfl.h
vendored
8
src/external/sinfl.h
vendored
|
|
@ -143,6 +143,14 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
|
|||
#include <string.h> /* memcpy, memset */
|
||||
#include <assert.h> /* assert */
|
||||
|
||||
/*
|
||||
* @ChrisGrams - In Windows, this header is required and was no longer
|
||||
* included in rcore.c after commit 0b4815b8fe861f8fbeac35f46f7e1ff78891b7b5.
|
||||
*/
|
||||
#ifdef _MSC_VER
|
||||
#include <intrin.h>
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__) || defined(__clang__)
|
||||
#define sinfl_likely(x) __builtin_expect((x),1)
|
||||
#define sinfl_unlikely(x) __builtin_expect((x),0)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user