mirror of
https://github.com/labwc/labwc.git
synced 2026-04-11 08:21:13 -04:00
This is a common practice in C projects, which simply enforces that each header must compile cleanly without implicit dependencies on other headers (see also the previous commit).
10 lines
204 B
C
10 lines
204 B
C
// SPDX-License-Identifier: GPL-2.0-only
|
|
|
|
#include "common/match.h"
|
|
#include <fnmatch.h>
|
|
|
|
bool
|
|
match_glob(const char *pattern, const char *string)
|
|
{
|
|
return fnmatch(pattern, string, FNM_CASEFOLD) == 0;
|
|
}
|