//========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #ifndef LINUX_SUPPORT_H #define LINUX_SUPPORT_H #include // tolower() #include // PATH_MAX define #include //strcmp, strcpy #include // stat() #include #include // scandir() #include #include #include "tier0/platform.h" #define FILE_ATTRIBUTE_DIRECTORY S_IFDIR typedef struct { // public data int dwFileAttributes; char cFileName[PATH_MAX]; // the file name returned from the call char cBaseDir[PATH_MAX]; // the root dir for this find int numMatches; struct dirent **namelist; } FIND_DATA; #define WIN32_FIND_DATA FIND_DATA HANDLE FindFirstFile( const char *findName, FIND_DATA *dat); bool FindNextFile(HANDLE handle, FIND_DATA *dat); bool FindClose(HANDLE handle); const char *findFileInDirCaseInsensitive(const char* path, char *file); #endif // LINUX_SUPPORT_H