diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2019-05-21 13:35:01 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2019-05-21 13:35:01 -0400 |
commit | 03fffc3bdce0d16b2b5646aaa3eebf63bca7d70c (patch) | |
tree | ea12daeabf720fd3e25a4b1fcc377583d7a7a011 | |
parent | 1f0ae2e349b7fba7ca12c492cd451391eb0ced14 (diff) | |
download | efl-03fffc3bdce0d16b2b5646aaa3eebf63bca7d70c.tar.gz |
Eio: avoid symbolic link on Windows
Summary: On Windows, symbolic links do not exist
Test Plan: compilation
Reviewers: zmike, raster, cedric
Reviewed By: zmike
Subscribers: #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8931
-rw-r--r-- | src/lib/eio/eio_inline_helper.x | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/eio/eio_inline_helper.x b/src/lib/eio/eio_inline_helper.x index 7c4f61fa7a..b95d72c32d 100644 --- a/src/lib/eio/eio_inline_helper.x +++ b/src/lib/eio/eio_inline_helper.x @@ -90,12 +90,20 @@ eio_file_is_dir(const Eina_Stat *st) * @return EINA_TRUE if the path is a length. * * This function tell you if the stated path is a length or not. + * + * @note On Windows, this function returns always #EINA_FALSE. */ static inline Eina_Bool eio_file_is_lnk(const Eina_Stat *st) { +#ifdef _WIN32 + /* no symbolic links on Windows */ + return EINA_FALSE; + (void)st; +#else if (!st) return EINA_FALSE; return (S_ISLNK(st->mode)) ? EINA_TRUE : EINA_FALSE; +#endif } /** |