dirent_on_windows.h 1.1 KB

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