DEADSOFTWARE

Patched for Linux
[mp3cc.git] / MPC.3.5.LINUX / preverifier / path_md.h
1 /*
2 * @(#)path_md.h 1.4 02/09/27
3 *
4 * Copyright 1995-1998 by Sun Microsystems, Inc.,
5 * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
6 * All rights reserved.
7 *
8 * This software is the confidential and proprietary information
9 * of Sun Microsystems, Inc. ("Confidential Information"). You
10 * shall not disclose such Confidential Information and shall use
11 * it only in accordance with the terms of the license agreement
12 * you entered into with Sun.
13 * Use is subject to license terms.
14 */
16 #ifndef _PATH_MD_H_
17 #define _PATH_MD_H_
19 #define DIR_SEPARATOR '/'
21 #ifdef UNIX
22 #define LOCAL_DIR_SEPARATOR '/'
23 #define PATH_SEPARATOR ':'
25 #include <dirent.h>
26 #endif
27 #ifdef WIN32
29 #define LOCAL_DIR_SEPARATOR '\\'
30 #define PATH_SEPARATOR ';'
32 #include <direct.h>
33 struct dirent {
34 char d_name[1024];
35 };
37 typedef struct {
38 struct dirent dirent;
39 char *path;
40 HANDLE handle;
41 WIN32_FIND_DATA find_data;
42 } DIR;
44 DIR *opendir(const char *dirname);
45 struct dirent *readdir(DIR *dirp);
46 int closedir(DIR *dirp);
48 #endif
50 #endif /* !_PATH_MD_H_ */