From a8b939adc7960bebfb4ce8ea03394de6c0c5ff72 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 8 Aug 2005 13:39:56 +0000 Subject: * ftw.c: Include winsup.h. * nftw.c: Ditto. * include/ftw.h: Guard declarations appropriately. --- winsup/cygwin/include/ftw.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'winsup/cygwin/include/ftw.h') diff --git a/winsup/cygwin/include/ftw.h b/winsup/cygwin/include/ftw.h index 20f24bdba..f57cc091b 100644 --- a/winsup/cygwin/include/ftw.h +++ b/winsup/cygwin/include/ftw.h @@ -54,9 +54,17 @@ struct FTW { }; __BEGIN_DECLS +#ifdef __INSIDE_CYGWIN__ int ftw(const char *, int (*)(const char *, const struct __stat64 *, int), int); int nftw(const char *, int (*)(const char *, const struct __stat64 *, int, struct FTW *), int, int); +#elif defined (__CYGWIN__) && !defined (__CYGWIN_USE_BIG_TYPES__) + #error "ftw requires __CYGWIN_USE_BIG_TYPES__" +#else +int ftw(const char *, int (*)(const char *, const struct stat *, int), int); +int nftw(const char *, int (*)(const char *, const struct stat *, int, + struct FTW *), int, int); +#endif __END_DECLS #endif /* !_FTW_H */ -- cgit v1.2.3