summaryrefslogtreecommitdiff
path: root/src/lib/eio
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2019-05-21 13:35:01 -0400
committerMike Blumenkrantz <zmike@samsung.com>2019-05-21 13:35:01 -0400
commit03fffc3bdce0d16b2b5646aaa3eebf63bca7d70c (patch)
treeea12daeabf720fd3e25a4b1fcc377583d7a7a011 /src/lib/eio
parent1f0ae2e349b7fba7ca12c492cd451391eb0ced14 (diff)
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
Diffstat (limited to 'src/lib/eio')
-rw-r--r--src/lib/eio/eio_inline_helper.x8
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 7c4f61f..b95d72c 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)
90 * @return EINA_TRUE if the path is a length. 90 * @return EINA_TRUE if the path is a length.
91 * 91 *
92 * This function tell you if the stated path is a length or not. 92 * This function tell you if the stated path is a length or not.
93 *
94 * @note On Windows, this function returns always #EINA_FALSE.
93 */ 95 */
94static inline Eina_Bool 96static inline Eina_Bool
95eio_file_is_lnk(const Eina_Stat *st) 97eio_file_is_lnk(const Eina_Stat *st)
96{ 98{
99#ifdef _WIN32
100 /* no symbolic links on Windows */
101 return EINA_FALSE;
102 (void)st;
103#else
97 if (!st) return EINA_FALSE; 104 if (!st) return EINA_FALSE;
98 return (S_ISLNK(st->mode)) ? EINA_TRUE : EINA_FALSE; 105 return (S_ISLNK(st->mode)) ? EINA_TRUE : EINA_FALSE;
106#endif
99} 107}
100 108
101/** 109/**