IDZEBRA 2.2.8
direntz.h
Go to the documentation of this file.
1/* This file is part of the Zebra server.
2 Copyright (C) Index Data
3
4Zebra is free software; you can redistribute it and/or modify it under
5the terms of the GNU General Public License as published by the Free
6Software Foundation; either version 2, or (at your option) any later
7version.
8
9Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
10WARRANTY; without even the implied warranty of MERCHANTABILITY or
11FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12for more details.
13
14You should have received a copy of the GNU General Public License
15along with this program; if not, write to the Free Software
16Foundation, 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
26YAZ_BEGIN_CDECL
27
28struct dirent {
29 char d_name[MAX_PATH];
30};
31
32typedef struct DIR DIR;
33
34DIR *opendir (const char *path);
35struct dirent *readdir (DIR *dd);
36void closedir (DIR *dd);
37
38YAZ_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