define PATH_MAX for cegcc compiler

SVN revision: 34079
This commit is contained in:
doursse 2008-03-22 08:35:43 +00:00 committed by doursse
parent ee23c4b248
commit 4da0f5fa80
1 changed files with 9 additions and 5 deletions

View File

@ -60,6 +60,11 @@ extern "C" {
#include <sys/time.h>
#include <limits.h>
#ifdef __CEGCC__
# include <sys/syslimits.h> /* for PATH_MAX */
#endif
#ifndef __CEGCC__
# include <sys/types.h>
@ -273,6 +278,7 @@ EAPI int pipe(int *fds);
#endif /* ! __CEGCC__ */
#if defined(__MSDOS__) || defined(__EMX__) || \
(defined(_WIN32) && !defined(_UWIN) && !defined(__CYGWIN__) && !defined(__CEGCC__))
# if defined(_MSC_VER) || defined(__MINGW32__)
@ -291,6 +297,7 @@ EAPI int pipe(int *fds);
# endif
#endif
#if ! ( defined(__CEGCC__) || defined(__MINGW32CE__) )
/**
* @brief Return an absolute or full path name for a specified relative path name.
@ -317,8 +324,10 @@ EAPI int pipe(int *fds);
* @ingroup Evil
*/
EAPI char *realpath(const char *file_name, char *resolved_name);
#endif /* ! __CEGCC__ && ! __MINGW32CE__ */
/**
* @brief Initiates the use of Windows sockets.
*
@ -378,9 +387,4 @@ EAPI const char *evil_tmpdir_get(void);
}
#endif
#ifdef _WIN32
# undef EAPI
# define EAPI
#endif /* _WIN32 */
#endif /* __EVIL_H__ */