From 2f8edd60852bf0ba85573ab463fa078ccd10414c Mon Sep 17 00:00:00 2001 From: Frederic Marchal Date: Sat, 26 Jan 2013 19:40:25 +0100 Subject: [PATCH] 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. --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2