dir.c: make git_fnmatch() not inline
authorCharles Bailey <cbailey32@bloomberg.net>
Sat, 29 Mar 2014 15:39:00 +0000 (15:39 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 31 Mar 2014 18:50:15 +0000 (11:50 -0700)
Now that it calls a static inline function, it cannot be an inline
definition with external linkage. Remove inline and make it an
external definition.

Signed-off-by: Charles Bailey <cbailey32@bloomberg.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c
diff --git a/dir.c b/dir.c
index b35b6330f850f610b582b189d7e4d6a9ba4495db..a1740a51c957ae2e86412b9e20c59a51880df53d 100644 (file)
--- a/dir.c
+++ b/dir.c
@@ -52,9 +52,9 @@ int fnmatch_icase(const char *pattern, const char *string, int flags)
        return fnmatch(pattern, string, flags | (ignore_case ? FNM_CASEFOLD : 0));
 }
 
-inline int git_fnmatch(const struct pathspec_item *item,
-                      const char *pattern, const char *string,
-                      int prefix)
+int git_fnmatch(const struct pathspec_item *item,
+               const char *pattern, const char *string,
+               int prefix)
 {
        if (prefix > 0) {
                if (ps_strncmp(item, pattern, string, prefix))