X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2Futil.h;h=3633a3fef8d3001c8811bb51e0051a575877299f;hb=c00843c84868585b36e7f020886e7235e77325da;hp=61ae532ec703f93c18a4638492f7f7da53c3ac46;hpb=6c206da1b97ad86e095d383f4ebd3d8f332ad416;p=andemo diff --git a/src/util.h b/src/util.h index 61ae532..3633a3f 100644 --- a/src/util.h +++ b/src/util.h @@ -4,7 +4,7 @@ #include #include -#if defined(__WATCOMC__) || defined(WIN32) +#if defined(__WATCOMC__) || defined(_WIN32) #include #else #if !defined(__FreeBSD__) && !defined(__OpenBSD__) @@ -18,14 +18,13 @@ #define malloc_nf(sz) malloc_nf_impl(sz, __FILE__, __LINE__) void *malloc_nf_impl(size_t sz, const char *file, int line); - #define calloc_nf(num, sz) calloc_nf_impl(num, sz, __FILE__, __LINE__) void *calloc_nf_impl(size_t num, size_t sz, const char *file, int line); - #define realloc_nf(p, sz) realloc_nf_impl(p, sz, __FILE__, __LINE__) void *realloc_nf_impl(void *p, size_t sz, const char *file, int line); - #define strdup_nf(s) strdup_nf_impl(s, __FILE__, __LINE__) char *strdup_nf_impl(const char *s, const char *file, int line); +int match_prefix(const char *str, const char *prefix); + #endif /* UTIL_H_ */