From: Frederic Marchal Date: Sat, 26 Jan 2013 18:40:25 +0000 (+0100) Subject: Test for an absolute path on Windows X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f8edd60852bf0ba85573ab463fa078ccd10414c;p=thirdparty%2Fsarg.git Test for an absolute path on Windows The code to test for an absolute path on Windows was not compiled because the constant to enable that code is not supported. --- diff --git a/util.c b/util.c index 6ff809b..92dfd60 100644 --- a/util.c +++ b/util.c @@ -380,7 +380,7 @@ long long int my_atoll (const char *nptr) int is_absolute(const char *path) { if (*path=='/') return(1); -#ifdef WINDOWS +#ifdef _WIN32 if (isalpha(path[0]) && path[1]==':') return(1); #endif return(0);