summaryrefslogtreecommitdiff
path: root/compat.h
blob: c17c8fbbe6ada8b6172f78ee3e61f1565e6635bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#if 1
#include <strings.h>
#include <string.h>
#define xstrcasecmp strcasecmp
#define xstrncasecmp strncasecmp
#else
int xstrcasecmp(const char *s1, const char *s2);
int xstrncasecmp(const char *s1, const char *s2, size_t len);
#endif

/* non-ansi */
void * xstrdup(const char *s);

/* for mingw */
#include <sys/stat.h>
#include <sys/types.h>
int xmkdir(const char *path, mode_t mode);