2007.
[idzebra-moved-to-github.git] / include / direntz.h
1 /* $Id: direntz.h,v 1.14 2007-01-15 20:08:24 adam Exp $
2    Copyright (C) 1995-2007
3    Index Data ApS
4
5 This file is part of the Zebra server.
6
7 Zebra is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
10 version.
11
12 Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
15 for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
20
21 */
22
23 #ifdef WIN32
24 /* make WIN32 version of dirent */
25 #include <windows.h>
26
27 #include <yaz/yconfig.h>
28
29 YAZ_BEGIN_CDECL
30
31 struct dirent {
32     char d_name[MAX_PATH];
33 };
34
35 typedef struct DIR DIR;
36
37 DIR *opendir (const char *path);
38 struct dirent *readdir (DIR *dd);
39 void closedir (DIR *dd);
40
41 YAZ_END_CDECL
42
43 #else
44 /* include UNIX version */
45 #include <sys/types.h>
46 #include <dirent.h>
47 #endif
48
49 /*
50  * Local variables:
51  * c-basic-offset: 4
52  * indent-tabs-mode: nil
53  * End:
54  * vim: shiftwidth=4 tabstop=8 expandtab
55  */
56