From 4da0f5fa8001132ace7b38a031e528dabbe0a8fc Mon Sep 17 00:00:00 2001 From: doursse Date: Sat, 22 Mar 2008 08:35:43 +0000 Subject: [PATCH] define PATH_MAX for cegcc compiler SVN revision: 34079 --- legacy/evil/src/lib/Evil.h | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/legacy/evil/src/lib/Evil.h b/legacy/evil/src/lib/Evil.h index 74b6419ba9..daff8be48f 100644 --- a/legacy/evil/src/lib/Evil.h +++ b/legacy/evil/src/lib/Evil.h @@ -60,6 +60,11 @@ extern "C" { #include #include +#ifdef __CEGCC__ +# include /* for PATH_MAX */ +#endif + + #ifndef __CEGCC__ # include @@ -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__ */