pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/babl babl: USE_LANGUAGES= c99



details:   https://anonhg.NetBSD.org/pkgsrc/rev/54c98304bcf7
branches:  trunk
changeset: 422043:54c98304bcf7
user:      nia <nia%pkgsrc.org@localhost>
date:      Sun Jan 19 23:19:50 2020 +0000

description:
babl: USE_LANGUAGES=    c99

Build fix for older compilers with c89 default...

../babl/base/formats.c: In function 'babl_formats_init':
../babl/base/formats.c:38:3: error: 'for' loop initial declarations are only allowed in C99 mode

diffstat:

 graphics/babl/Makefile |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r f31830640a92 -r 54c98304bcf7 graphics/babl/Makefile
--- a/graphics/babl/Makefile    Sun Jan 19 23:10:40 2020 +0000
+++ b/graphics/babl/Makefile    Sun Jan 19 23:19:50 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.28 2020/01/09 23:37:45 nia Exp $
+# $NetBSD: Makefile,v 1.29 2020/01/19 23:19:50 nia Exp $
 
 DISTNAME=      babl-0.1.72
 CATEGORIES=    graphics
@@ -11,6 +11,7 @@
 LICENSE=       gnu-gpl-v3
 
 USE_TOOLS+=    pkg-config
+USE_LANGUAGES= c99
 
 MESON_ARGS+=   -Dwith-docs=false
 MESON_ARGS+=   -Denable-gir=false



Home | Main Index | Thread Index | Old Index