~ubuntu-branches/ubuntu/utopic/binkd/utopic-proposed

« back to all changes in this revision

Viewing changes to readdir.h

  • Committer: Bazaar Package Importer
  • Author(s): Marco d'Itri
  • Date: 2002-03-24 22:52:25 UTC
  • Revision ID: james.westby@ubuntu.com-20020324225225-7ru6itlapn03nl35
Tags: upstream-0.9.5a
ImportĀ upstreamĀ versionĀ 0.9.5a

Show diffs side-by-side

added added

removed removed

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