5 * Created by Toshi Nagata on 08/11/06.
6 * Copyright 2008 Toshi Nagata. All rights reserved.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation version 2 of the License.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
21 #if defined(__WXMSW__) || defined(__CMDMSW__)
22 #define MISSING_STRSEP 1
23 #define MISSING_ASPRINTF 1
24 #define MISSING_STRTOK_R 1
25 #define MISSING_MERGESORT 1
26 #define MISSING_STRDUP 1 /* For debug with 'external' malloc library */
27 #define PATH_SEPARATOR '\\'
29 #define PATH_SEPARATOR '/'
36 void translate_char(char *p, int from, int to);
37 void fix_dosish_path(char *p);
40 char *strpbrk(const char *cs, const char *ct);
41 char *strsep(char **stringp, const char *delim);
46 int asprintf(char **ret, const char *format, ...);
47 int vasprintf(char **ret, const char *format, va_list ap);
48 #endif /* MISSING_ASPRINTF */
52 char *_strdup(const char *src);
53 wchar_t *_wcsdup(const wchar_t *src);
54 char *strdup(const char *src);
55 wchar_t *wcsdup(const wchar_t *src);
56 #endif /* MISSING_STRDUP */
59 char *strtok_r(char *str, const char *sep, char **lasts);
60 #endif /* MISSING_STRTOK_R */
64 int mergesort(void *base, size_t nel, size_t width, int (*compar)(const void *, const void *));
65 #endif /* MISSING_MERGESORT */
71 #endif /* __MISSING_H__ */