diff options
Diffstat (limited to '')
-rw-r--r-- | support.h | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1,3 +1,5 @@ +#ifndef SUPPORT_H +#define SUPPORT_H #ifdef HAVE_LIBGEN_H #include <libgen.h> @@ -7,20 +9,16 @@ char *basename(char *path); #endif -#ifndef HAVE_STRCASESTR -char *strcasestr(const char *haystack, const char *needle); -#endif - #define IS_WHITESPACE(c) (c==' ' || c=='\t' || c=='\r' || c=='\n') char *trim(char *str); char *remove_trailing_slash(char *path); char *lowerstr(char *str); - +char *strcasestr(const char *haystack, const char *needle); int charset_init(void); int charset_close(void); char *utf8_to_locale(char *str); char *locale_to_utf8(char *str); - +#endif |