Skip to content

Commit a568506

Browse files
committed
REVIEWED: External libraries sdefl and sinfl to address #5367
1 parent 6a048b7 commit a568506

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/external/sdefl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ extern int zsdeflate(struct sdefl *s, void *o, const void *i, int n, int lvl);
198198
static int
199199
sdefl_ilog2(int n) {
200200
if (!n) return 0;
201-
#ifdef _MSC_VER
201+
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
202202
unsigned long msbp = 0;
203203
_BitScanReverse(&msbp, (unsigned long)n);
204204
return (int)msbp;

src/external/sinfl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ extern int zsinflate(void *out, int cap, const void *in, int size);
171171

172172
static int
173173
sinfl_bsr(unsigned n) {
174-
#ifdef _MSC_VER
174+
#if defined(_MSC_VER) && !defined(__llvm__) && !defined(__INTEL_COMPILER) // @raysan5, address PR #5367
175175
unsigned long uln = 0;
176176
_BitScanReverse(&uln, n);
177177
return (int)(uln);

0 commit comments

Comments
 (0)