-#ifdef WIN32
-
-bool
-is_dir(char *dirname)
-{
- WIN32_FILE_ATTRIBUTE_DATA buf;
- if(!GetFileAttributesEx(dirname, GetFileExInfoStandard, &buf))
- return false;
- return buf.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY;
-}
-
-bool
-is_file(char *filename)
-{
- WIN32_FILE_ATTRIBUTE_DATA buf;
- if(!GetFileAttributesEx(filename, GetFileExInfoStandard, &buf))
- return false;
- return buf.dwFileAttributes & FILE_ATTRIBUTE_NORMAL;
-}
-
-#else /* !WIN32 */
-
-bool