mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2025-12-20 06:40:03 +01:00
Avoid const warning on Win32
scan_dir() alters the directory name in place on Win32 to convert \ to /, so it can't be treated as const.
This commit is contained in:
parent
0efb668bd5
commit
a65ee007bb
1 changed files with 1 additions and 1 deletions
2
pkg.c
2
pkg.c
|
|
@ -127,7 +127,7 @@ name_ends_in_uninstalled (const char *str)
|
|||
* locations, ignoring duplicates
|
||||
*/
|
||||
static void
|
||||
scan_dir (const char *dirname)
|
||||
scan_dir (char *dirname)
|
||||
{
|
||||
DIR *dir;
|
||||
struct dirent *dent;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue