]> git.ipfire.org Git - thirdparty/git.git/blobdiff - git-compat-util.h
wrapper.c: add and use fopen_or_warn()
[thirdparty/git.git] / git-compat-util.h
index eb5c18c7fd5650acbfee5fb25a91a770fb385936..f74b40181068f4c5876b4be607c0d7ff30f1671f 100644 (file)
@@ -802,6 +802,7 @@ extern int xmkstemp(char *template);
 extern int xmkstemp_mode(char *template, int mode);
 extern char *xgetcwd(void);
 extern FILE *fopen_for_writing(const char *path);
+extern FILE *fopen_or_warn(const char *path, const char *mode);
 
 #define ALLOC_ARRAY(x, alloc) (x) = xmalloc(st_mult(sizeof(*(x)), (alloc)))
 #define REALLOC_ARRAY(x, alloc) (x) = xrealloc((x), st_mult(sizeof(*(x)), (alloc)))