]> git.ipfire.org Git - thirdparty/git.git/blobdiff - utf8.h
worktree: fix option descriptions for `prune`
[thirdparty/git.git] / utf8.h
diff --git a/utf8.h b/utf8.h
index e7b2aa416844a0b2ccb2d2cf8a1bce68c4d60be1..5a9e94bee62fd2ed62dcbc82aee12bfc6d75e254 100644 (file)
--- a/utf8.h
+++ b/utf8.h
@@ -31,7 +31,9 @@ char *reencode_string_len(const char *in, int insz,
                          const char *in_encoding,
                          int *outsz);
 #else
-#define reencode_string_len(a,b,c,d,e) NULL
+static inline char *reencode_string_len(const char *a, int b,
+                                       const char *c, const char *d, int *e)
+{ if (e) *e = 0; return NULL; }
 #endif
 
 static inline char *reencode_string(const char *in,