babl-native: fix build issue

../babl-0.1.74/babl/babl-fish-reference.c:1064:7: error: ‘for’ loop initial declarations are only allowed in C99 mode
|        for (int i = 0; i < n; i++)
|        ^
| ../babl-0.1.74/babl/babl-fish-reference.c:1064:7: note: use option -std=c99 or -std=gnu99 to compile your code

Fails on CentOS7 with Arch64

Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
Armin Kuster 2020-08-31 08:13:09 -07:00
parent eec787e19b
commit 6a8d6ddc54

View File

@ -10,6 +10,8 @@ inherit setuptools3 gnomebase gobject-introspection
DEPENDS += "lcms"
CFLAGS_append_class-native = " -std=gnu99"
# https://bugs.llvm.org/show_bug.cgi?id=45555
CFLAGS_append_toolchain-clang_mipsarch = " -ffp-exception-behavior=ignore "
CFLAGS_append_toolchain-clang_riscv64 = " -ffp-exception-behavior=ignore "