32 #if !defined LT__DIRENT_H
33 #define LT__DIRENT_H 1
35 #if defined LT_CONFIG_H
41 #include "lt_system.h"
46 # define D_NAMLEN(dirent) (strlen((dirent)->d_name))
48 #elif defined __WINDOWS__
50 # define WINDOWS_DIRENT_EMULATION 1
54 # define D_NAMLEN(dirent) (strlen((dirent)->d_name))
55 # define dirent lt__dirent
57 # define opendir lt__opendir
58 # define readdir lt__readdir
59 # define closedir lt__closedir
65 char d_name[LT_FILENAME_MAX];
72 WIN32_FIND_DATA Win32FindData;
74 struct dirent file_info;
78 LT_SCOPE DIR * opendir (
const char *path);
79 LT_SCOPE
struct dirent *readdir (DIR *entry);
80 LT_SCOPE
void closedir (DIR *entry);
85 ERROR - cannot find dirent