package/kodi-visualisation-goom: fix build with gcc-4.9
authorBernd Kuhls <bernd.kuhls@t-online.de>
Mon, 27 Jan 2020 18:54:13 +0000 (19:54 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 28 Jan 2020 22:13:32 +0000 (23:13 +0100)
Fixes build error:

output/build/kodi-visualisation-goom-2.1.0-Leia/lib/goom/src/lines.c:
In function 'goom_lines_draw':
output/build/kodi-visualisation-goom-2.1.0-Leia/lib/goom/src/lines.c:232:3:
error: 'for' loop initial declarations are only allowed in C99 or C11 mode
   for (int i = 1; i < AUDIO_SAMPLE_LEN; i++) {

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/kodi-visualisation-goom/kodi-visualisation-goom.mk

index d742e00e5a1667afa2c1512c0c81f98f869b4520..0184d8474c6ebbc4f69f29db558d825f1c80d83f 100644 (file)
@@ -11,4 +11,7 @@ KODI_VISUALISATION_GOOM_LICENSE_FILES = src/Main.cpp
 
 KODI_VISUALISATION_GOOM_DEPENDENCIES = glm kodi
 
+KODI_VISUALISATION_GOOM_CONF_OPTS += \
+       -DCMAKE_C_FLAGS="-std=c11"
+
 $(eval $(cmake-package))