comparison platform/dirent.h @ 1594:6baf177f335c

Rename compat.c/h dwcompat.c/h and configure option to --with-dwcompat. There are several other projects that include compat.c and compat.h... To avoid conflicts make sure the header and source files match the library.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 23 Feb 2012 12:44:15 +0000
parents 56f311dc23f6
children 71e0a3ad07f7
comparison
equal deleted inserted replaced
1593:19af25f71e1f 1594:6baf177f335c
2 #include <dirent.h> 2 #include <dirent.h>
3 #else 3 #else
4 #ifndef __DIRENT_H__ 4 #ifndef __DIRENT_H__
5 #define __DIRENT_H__ 5 #define __DIRENT_H__
6 6
7 #include "compat.h" 7 #include "dwcompat.h"
8 #include <stdio.h> 8 #include <stdio.h>
9 #ifdef MAXPATHLEN 9 #ifdef MAXPATHLEN
10 #undef MAXPATHLEN 10 #undef MAXPATHLEN
11 #endif 11 #endif
12 #define MAXPATHLEN (FILENAME_MAX*4) 12 #define MAXPATHLEN (FILENAME_MAX*4)