52770ec5ffcaf4446e725f3c55fd8621ec13105a
[idzebra-moved-to-github.git] / include / direntz.h
1 /*
2  * Copyright (c) 1997-1999, Index Data.
3  * See the file LICENSE for details.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: direntz.h,v $
7  * Revision 1.4  1999-05-26 07:49:13  adam
8  * C++ compilation.
9  *
10  * Revision 1.3  1999/02/02 14:50:33  adam
11  * Updated WIN32 code specific sections. Changed header.
12  *
13  * Revision 1.2  1997/09/17 12:19:09  adam
14  * Zebra version corresponds to YAZ version 1.4.
15  * Changed Zebra server so that it doesn't depend on global common_resource.
16  *
17  * Revision 1.1  1997/09/09 13:38:03  adam
18  * Partial port to WIN95/NT.
19  *
20  *
21  */
22
23
24 #ifdef WIN32
25 /* make WIN32 version of dirent */
26 #include <windows.h>
27
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31
32 struct dirent {
33     char d_name[MAX_PATH];
34 };
35
36 typedef struct DIR DIR;
37
38 DIR *opendir (const char *path);
39 struct dirent *readdir (DIR *dd);
40 void closedir (DIR *dd);
41
42 #ifdef __cplusplus
43 }
44 #endif
45
46 #else
47 /* include UNIX version */
48 #include <dirent.h>
49 #endif