dirent_compat.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. #ifndef DIRENT_INCLUDED
  2. #define DIRENT_INCLUDED
  3. /*
  4. Declaration of POSIX directory browsing functions and types for Win32.
  5. Author: Kevlin Henney (kevlin@acm.org, kevlin@curbralan.com)
  6. History: Created March 1997. Updated June 2003.
  7. Rights: See end of file.
  8. */
  9. #ifdef __cplusplus
  10. extern "C"
  11. {
  12. #endif
  13. typedef struct DIR DIR;
  14. struct dirent
  15. {
  16. char *d_name;
  17. };
  18. DIR *opendir(const char *);
  19. int closedir(DIR *);
  20. struct dirent *readdir(DIR *);
  21. void rewinddir(DIR *);
  22. /*
  23. Copyright Kevlin Henney, 1997, 2003. All rights reserved.
  24. Permission to use, copy, modify, and distribute this software and its
  25. documentation for any purpose is hereby granted without fee, provided
  26. that this copyright and permissions notice appear in all copies and
  27. derivatives.
  28. This software is supplied "as is" without express or implied warranty.
  29. But that said, if there are any problems please get in touch.
  30. */
  31. #ifdef __cplusplus
  32. }
  33. #endif
  34. #endif