X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/e09574bdf6cfbd21ff0a58a18f34d4a11db824d7..94182d6031df0d956a94ecd7ece233e345468961:/cgit.h diff --git a/cgit.h b/cgit.h index 508179a..b7eccdd 100644 --- a/cgit.h +++ b/cgit.h @@ -25,6 +25,9 @@ #include #include +/* Add isgraph(x) to Git's sane ctype support (see git-compat-util.h) */ +#undef isgraph +#define isgraph(x) (isprint((x)) && !isspace((x))) /* * Dateformats used on misc. pages @@ -388,4 +391,6 @@ extern int readfile(const char *path, char **buf, size_t *size); extern char *expand_macros(const char *txt); +extern char *get_mimetype_for_filename(const char *filename); + #endif /* CGIT_H */