diff options
author | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-22 11:25:18 +0000 |
---|---|---|
committer | olli <olli@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-02-22 11:25:18 +0000 |
commit | a92dbe51fbc5626b887cfbc82b16370decb1760d (patch) | |
tree | fa9cf59bc14c5393ac93de6182c957abe865cdfd /ACE/ace/OS_NS_dirent.inl | |
parent | 27ff4c20d5a0cb060abdb1e59efe7ae6769df8fb (diff) | |
download | ATCD-a92dbe51fbc5626b887cfbc82b16370decb1760d.tar.gz |
ChangeLogTag: Thu Feb 22 11:19:59 UTC 2007 Olli Savia <ops@iki.fi>
Diffstat (limited to 'ACE/ace/OS_NS_dirent.inl')
-rw-r--r-- | ACE/ace/OS_NS_dirent.inl | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/ace/OS_NS_dirent.inl b/ACE/ace/OS_NS_dirent.inl index a768a914887..56c5d5721aa 100644 --- a/ACE/ace/OS_NS_dirent.inl +++ b/ACE/ace/OS_NS_dirent.inl @@ -142,6 +142,17 @@ scandir (const ACE_TCHAR *dirname, #endif /* ACE_HAS_SCANDIR */ } +ACE_INLINE int +alphasort (const void *a, const void *b) +{ +#if defined (ACE_LACKS_ALPHASORT) + return ACE_OS::strcmp ((*(struct dirent **)a)->d_name, + (*(struct dirent **)b)->d_name); +#else + return ::alphasort (a, b); +#endif +} + ACE_INLINE void seekdir (ACE_DIR *d, long loc) { |