Skip to content

Commit 1465181

Browse files
authored
Merge pull request #5049 from malaterre/ci20-libjpeg
libjpeg-turbo: fix compilation on mipsel
2 parents 629cbe6 + 4a6c3bf commit 1465181

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
From: =?utf-8?q?Ond=C5=99ej_Sur=C3=BD?= <[email protected]>
2+
Date: Thu, 20 Oct 2016 15:51:10 +0200
3+
Subject: Declare env on MIPS on first use (Courtesy of Aurelien Jarno)
4+
5+
---
6+
simd/jsimd_mips.c | 2 +-
7+
1 file changed, 1 insertion(+), 1 deletion(-)
8+
9+
diff --git a/simd/jsimd_mips.c b/simd/jsimd_mips.c
10+
index 63b8115..a371a32 100644
11+
--- a/simd/jsimd_mips.c
12+
+++ b/simd/jsimd_mips.c
13+
@@ -79,7 +79,7 @@ init_simd (void)
14+
#endif
15+
16+
/* Force different settings through environment variables */
17+
- env = getenv("JSIMD_FORCEDSPR2");
18+
+ char *env = getenv("JSIMD_FORCEDSPR2");
19+
if ((env != NULL) && (strcmp(env, "1") == 0))
20+
simd_support = JSIMD_MIPS_DSPR2;
21+
env = getenv("JSIMD_FORCENONE");

0 commit comments

Comments
 (0)