summaryrefslogtreecommitdiff
path: root/ace/OS_NS_dirent.h
diff options
context:
space:
mode:
Diffstat (limited to 'ace/OS_NS_dirent.h')
-rw-r--r--ace/OS_NS_dirent.h28
1 files changed, 16 insertions, 12 deletions
diff --git a/ace/OS_NS_dirent.h b/ace/OS_NS_dirent.h
index c5bf0efd859..6def1696ac0 100644
--- a/ace/OS_NS_dirent.h
+++ b/ace/OS_NS_dirent.h
@@ -33,6 +33,8 @@
#endif
#define ACE_EXPORT_MACRO ACE_Export
+ACE_BEGIN_VERSIONED_NAMESPACE_DECL
+
namespace ACE_OS {
ACE_NAMESPACE_INLINE_FUNCTION
@@ -42,22 +44,22 @@ namespace ACE_OS {
ACE_DIR *opendir (const ACE_TCHAR *filename);
ACE_NAMESPACE_INLINE_FUNCTION
- dirent *readdir (ACE_DIR *);
+ struct ACE_DIRENT *readdir (ACE_DIR *);
ACE_NAMESPACE_INLINE_FUNCTION
int readdir_r (ACE_DIR *dirp,
- struct dirent *entry,
- struct dirent **result);
+ struct ACE_DIRENT *entry,
+ struct ACE_DIRENT **result);
ACE_NAMESPACE_INLINE_FUNCTION
void rewinddir (ACE_DIR *);
ACE_NAMESPACE_INLINE_FUNCTION
int scandir (const ACE_TCHAR *dirname,
- struct dirent **namelist[],
- int (*selector) (const struct dirent *filename),
- int (*comparator) (const struct dirent **f1,
- const struct dirent **f2));
+ struct ACE_DIRENT **namelist[],
+ int (*selector) (const struct ACE_DIRENT *filename),
+ int (*comparator) (const struct ACE_DIRENT **f1,
+ const struct ACE_DIRENT **f2));
ACE_NAMESPACE_INLINE_FUNCTION
void seekdir (ACE_DIR *,
@@ -72,19 +74,21 @@ namespace ACE_OS {
extern ACE_Export
int scandir_emulation (const ACE_TCHAR *dirname,
- dirent **namelist[],
- int (*selector)(const dirent *entry),
- int (*comparator)(const dirent **f1,
- const dirent**f2));
+ ACE_DIRENT **namelist[],
+ int (*selector)(const ACE_DIRENT *entry),
+ int (*comparator)(const ACE_DIRENT **f1,
+ const ACE_DIRENT**f2));
extern ACE_Export
void closedir_emulation (ACE_DIR *);
extern ACE_Export
- dirent *readdir_emulation (ACE_DIR *);
+ struct ACE_DIRENT *readdir_emulation (ACE_DIR *);
} /* namespace ACE_OS */
+ACE_END_VERSIONED_NAMESPACE_DECL
+
# if defined (ACE_HAS_INLINED_OSCALLS)
# if defined (ACE_INLINE)
# undef ACE_INLINE