Implement some functions for win32

And disable building binaries for win32 that make no sense there
This commit is contained in:
Maarten Bosmans 2011-01-06 02:10:45 +01:00
parent 7b90e3b942
commit d6d4336705
4 changed files with 72 additions and 18 deletions

View file

@ -151,7 +151,7 @@ static char *normalize_path(const char *fn) {
#ifndef OS_IS_WIN32
if (fn[0] != '/') {
#else
if (strlen(fn) < 3 || !isalpha(fn[0]) || fn[1] != ':' || fn[2] != '\\') {
if (strlen(fn) < 3 || !IsCharAlpha(fn[0]) || fn[1] != ':' || fn[2] != '\\') {
#endif
char *homedir, *s;