1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/*
* readdir.h -- The header to get POSIX directory interface out of
* misc compilers
*
* ftnq.h is a part of binkd project
*
* Copyright (C) 1996 Dima Maloff, 5047/13
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version. See COPYING.
*/
/*
* $Id: readdir.h,v 2.0 2001/01/10 12:12:39 gul Exp $
*
* $Log: readdir.h,v $
* Revision 2.0 2001/01/10 12:12:39 gul
* Binkd is under CVS again
*
* Revision 1.1 1996/12/29 09:46:20 mff
* Initial revision
*
*/
#ifndef _readdir_h
#define _readdir_h
#if defined(__WATCOMC__) || defined(VISUALCPP) || defined(__IBMC__) || defined(__MSC__)
#include <direct.h>
#include <sys/utime.h>
#else
#include <dirent.h>
#include <utime.h>
#endif
#if defined(VISUALCPP)
#include "NT/dirwin32.h"
#endif
#if defined(WATCOMC_CLOSEDIR_BUG)
#define INCL_DOS
#include <os2.h>
#define closedir(d) (DosFindClose(*(HDIR *)((d)->d_dta)-2), closedir(d))
#endif
#if defined(__IBMC__)
#include "os2/dirent.h"
#endif
#if defined(__MSC__)
#include "dos/dirent.h"
#endif
#endif
|