diff options
author | David Robillard <d@drobilla.net> | 2019-04-08 21:02:52 +0200 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-04-14 22:58:06 +0200 |
commit | f5af942a11bd2f3b718adf70ca15c4a62372ee78 (patch) | |
tree | d4cebb6a524de4025423f6b0e58e006b87666659 /src | |
parent | 84762e0bfbc76d45e3e5bcbd42a49bb63c539dd7 (diff) | |
download | lilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.tar.gz lilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.tar.bz2 lilv-f5af942a11bd2f3b718adf70ca15c4a62372ee78.zip |
Remove support for OSX < 10.6
Diffstat (limited to 'src')
-rw-r--r-- | src/util.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -459,19 +459,9 @@ lilv_realpath(const char* path) char* out = (char*)malloc(MAX_PATH); GetFullPathName(path, MAX_PATH, out, NULL); return out; -#elif _POSIX_VERSION >= 200809L +#else char* real_path = realpath(path, NULL); return real_path ? real_path : lilv_strdup(path); -#else - // OSX <= 10.5, if anyone cares. I sure don't. - char* out = (char*)malloc(PATH_MAX); - char* real_path = realpath(path, out); - if (!real_path) { - free(out); - return lilv_strdup(path); - } else { - return real_path; - } #endif } |