diff options
| author | jon <jon@lunarg.com> | 2015-10-29 14:57:03 -0600 |
|---|---|---|
| committer | jon <jon@lunarg.com> | 2015-10-29 14:57:03 -0600 |
| commit | 3ef20ef8995b662aad45ef069bd3e96e65150d6d (patch) | |
| tree | ae8ae69039c4df3db4f0d357fd559e1428d45748 /loader | |
| parent | 6b62285c4a10a337db5eefdfcf659ac201600632 (diff) | |
| download | usermoji-3ef20ef8995b662aad45ef069bd3e96e65150d6d.tar.xz | |
loader: Move utility function so it is found on both Linux and Windows
Diffstat (limited to 'loader')
| -rw-r--r-- | loader/vk_loader_platform.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/loader/vk_loader_platform.h b/loader/vk_loader_platform.h index ef5a19f1..5b94948b 100644 --- a/loader/vk_loader_platform.h +++ b/loader/vk_loader_platform.h @@ -106,13 +106,6 @@ static inline bool loader_platform_is_path_absolute(const char *path) return false; } -// returns true if the given string appears to be a relative or absolute -// path, as opposed to a bare filename. -static inline bool loader_platform_is_path(const char *path) -{ - return strchr(path, DIRECTORY_SYMBOL) != NULL; -} - static inline char *loader_platform_dirname(char *path) { return dirname(path); @@ -399,3 +392,9 @@ char *loader_get_registry_string(const HKEY hive, #endif // defined(_WIN32) +// returns true if the given string appears to be a relative or absolute +// path, as opposed to a bare filename. +static inline bool loader_platform_is_path(const char *path) +{ + return strchr(path, DIRECTORY_SYMBOL) != NULL; +} |
