Subject: Question regarding C syntax
To: Packages Technical List NetBSD Discussion <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 09/16/2006 22:43:31
devel/pkg-config's pkg.c has
static Package pkg_config_package = {
.key = PACKAGE,
.name = PACKAGE,
.version = VERSION, /* .version */
.description = "returns metainformation about installed libraries",
.url = "http://pkg-config.freedesktop.org",
0 /* keep the rest as null */
};
This code does not compile with the IRIX IDO cc (other non-gcc
compilers might also be affected).
Is it OK to change it into the following form?
static Package pkg_config_package = {
PACKAGE,
PACKAGE,
VERSION, /* .version */
"returns metainformation about installed libraries",
"http://pkg-config.freedesktop.org",
0 /* keep the rest as null */
};
--
Georg Schwarz http://home.pages.de/~schwarz/
georg.schwarz@freenet.de +49 178 8545053