mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-24 19:08:15 +02:00
Fix C99-ism
Old NetBSD versions don't have a C99 compiler, so get rid a C99ism for their benefit.
This commit is contained in:
parent
35495b1e74
commit
5764fbe873
1 changed files with 5 additions and 3 deletions
8
parse.c
8
parse.c
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2006-2010 Tollef Fog Heen <tfheen@err.no>
|
||||
* Copyright (C) 2006-2011 Tollef Fog Heen <tfheen@err.no>
|
||||
* Copyright (C) 2001, 2002, 2005-2006 Red Hat Inc.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
|
|
@ -880,8 +880,10 @@ parse_cflags (Package *pkg, const char *str, const char *path)
|
|||
pkg->other_cflags = g_slist_prepend (pkg->other_cflags,
|
||||
g_strdup (arg));
|
||||
if (strcmp("-idirafter", arg) == 0) {
|
||||
tmp = trim_string(argv[++i]);
|
||||
char *n = strdup_escape_shell(tmp);
|
||||
char *n;
|
||||
|
||||
tmp = trim_string(argv[++i]);
|
||||
n = strdup_escape_shell(tmp);
|
||||
pkg->other_cflags = g_slist_prepend(pkg->other_cflags, n);
|
||||
g_free(tmp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue