31 #if !defined(LT__DIRENT_H)
32 #define LT__DIRENT_H 1
34 #if defined(LT_CONFIG_H)
40 #include "lt_system.h"
45 # define D_NAMLEN(dirent) (strlen((dirent)->d_name))
47 #elif defined __WINDOWS__
49 # define WINDOWS_DIRENT_EMULATION 1
53 # define D_NAMLEN(dirent) (strlen((dirent)->d_name))
54 # define dirent lt__dirent
56 # define opendir lt__opendir
57 # define readdir lt__readdir
58 # define closedir lt__closedir
64 char d_name[LT_FILENAME_MAX];
71 WIN32_FIND_DATA Win32FindData;
73 struct dirent file_info;
77 LT_SCOPE DIR * opendir (
const char *path);
78 LT_SCOPE
struct dirent *readdir (DIR *entry);
79 LT_SCOPE
void closedir (DIR *entry);
84 ERROR - cannot find dirent