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