Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7d5e565b
Commit
7d5e565b
authored
Jun 01, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Add checks for fnmatch support.
parent
1e4b401a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
18 additions
and
0 deletions
+18
-0
configure
configure
+4
-0
configure.ac
configure.ac
+2
-0
config.h.in
include/config.h.in
+6
-0
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+6
-0
No files found.
configure
View file @
7d5e565b
...
...
@@ -5780,6 +5780,7 @@ done
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
...
...
@@ -5799,6 +5800,7 @@ for ac_header in \
dlfcn.h
\
elf.h
\
float.h
\
fnmatch.h
\
fontconfig/fontconfig.h
\
getopt.h
\
grp.h
\
...
...
@@ -17988,6 +17990,7 @@ CFLAGS="$CFLAGS $BUILTINFLAG"
for
ac_func
in
\
_pclose
\
_popen
\
...
...
@@ -18005,6 +18008,7 @@ for ac_func in \
epoll_create
\
ffs
\
finite
\
fnmatch
\
fork
\
fpclass
\
fstatfs
\
...
...
configure.ac
View file @
7d5e565b
...
...
@@ -275,6 +275,7 @@ AC_CHECK_HEADERS(\
dlfcn.h \
elf.h \
float.h \
fnmatch.h \
fontconfig/fontconfig.h \
getopt.h \
grp.h \
...
...
@@ -1476,6 +1477,7 @@ AC_CHECK_FUNCS(\
epoll_create \
ffs \
finite \
fnmatch \
fork \
fpclass \
fstatfs \
...
...
include/config.h.in
View file @
7d5e565b
...
...
@@ -93,6 +93,12 @@
/* Define to 1 if you have the <float.h> header file. */
#undef HAVE_FLOAT_H
/* Define to 1 if you have the `fnmatch' function. */
#undef HAVE_FNMATCH
/* Define to 1 if you have the <fnmatch.h> header file. */
#undef HAVE_FNMATCH_H
/* Define to 1 if you have the <fontconfig/fontconfig.h> header file. */
#undef HAVE_FONTCONFIG_FONTCONFIG_H
...
...
programs/winemenubuilder/winemenubuilder.c
View file @
7d5e565b
...
...
@@ -64,7 +64,9 @@
#endif
#include <errno.h>
#include <stdarg.h>
#ifdef HAVE_FNMATCH_H
#include <fnmatch.h>
#endif
#define COBJMACROS
...
...
@@ -1444,6 +1446,7 @@ static BOOL build_native_mime_types(const char *xdg_data_home, struct list **mim
static
BOOL
match_glob
(
struct
list
*
native_mime_types
,
const
char
*
extension
,
char
**
match
)
{
#ifdef HAVE_FNMATCH
struct
xdg_mime_type
*
mime_type_entry
;
int
matchLength
=
0
;
...
...
@@ -1467,6 +1470,9 @@ static BOOL match_glob(struct list *native_mime_types, const char *extension,
if
(
*
match
==
NULL
)
return
FALSE
;
}
#else
*
match
=
NULL
;
#endif
return
TRUE
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment