--- mstools/posix/h/dirent.h 2018/08/09 18:22:18 1.1 +++ mstools/posix/h/dirent.h 2018/08/09 18:24:36 1.1.1.2 @@ -11,12 +11,6 @@ Abstract: This module contains the directory entry procedure prototypes -Author: - - Mark Lucovsky (markl) 17-Oct-1989 - -Revision History: - --*/ #ifndef _DIRENT_ @@ -25,14 +19,18 @@ Revision History: #include #include +#ifdef __cplusplus +extern "C" { +#endif + struct dirent { char d_name[NAME_MAX+1]; }; typedef struct _DIR { - void *Directory; - unsigned long ReservedForIndex; - char RestartScan; /* really BOOLEAN */ + int Directory; + unsigned long Index; + char RestartScan; /* really BOOLEAN */ struct dirent Dirent; } DIR; @@ -41,4 +39,8 @@ struct dirent * _CRTAPI1 readdir(DIR *); void _CRTAPI1 rewinddir(DIR *); int _CRTAPI1 closedir(DIR *); +#ifdef __cplusplus +} +#endif + #endif /* _DIRENT_H */