summaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-01-16 19:19:44 +0000
committerDavid Robillard <d@drobilla.net>2012-01-16 19:19:44 +0000
commit012e8a8785abcbf403d842d67303d7470b33694c (patch)
tree8c456a49780fbbd7534edbf99f83d237a64464c3 /src/util.c
parent554dfe14bdf86b00a92fa20f83f4bfac5e85325b (diff)
downloadlilv-012e8a8785abcbf403d842d67303d7470b33694c.tar.gz
lilv-012e8a8785abcbf403d842d67303d7470b33694c.tar.bz2
lilv-012e8a8785abcbf403d842d67303d7470b33694c.zip
Use correct WIN32 define.
git-svn-id: http://svn.drobilla.net/lad/trunk/lilv@3954 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c
index 12821ff..d52f62a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -144,7 +144,7 @@ lilv_expand(const char* path)
ret = lilv_strdup(path);
}
wordfree(&p);
-#elif defined(__WIN32__)
+#elif defined(_WIN32)
static const size_t len = 32767;
char* ret = malloc(len);
ExpandEnvironmentStrings(path, ret, len);
@@ -247,7 +247,7 @@ lilv_path_is_absolute(const char* path)
return true;
}
-#ifdef __WIN32__
+#ifdef _WIN32
if (isalpha(path[0]) && path[1] == ':' && lilv_is_dir_sep(path[2])) {
return true;
}