diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index a23aaa8440..9156d09a19 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,13 @@ +2011-01-04 Vincent Torri + + * src/lib/dlfcn/dlfcn.h: + define (temporary) PATH_MAX on Windows CE. + cegcc has a bug with limits.h. + + * src/lib/evil_stdio.c: + * src/lib/evil_stdio.h: + undefine temporary the definition of perror() on Windows CE + 2010-12-18 Vincent Torri * src/lib/libgen.c: diff --git a/legacy/evil/src/lib/dlfcn/dlfcn.h b/legacy/evil/src/lib/dlfcn/dlfcn.h index ae31cbae1d..b388b4fcde 100644 --- a/legacy/evil/src/lib/dlfcn/dlfcn.h +++ b/legacy/evil/src/lib/dlfcn/dlfcn.h @@ -26,6 +26,12 @@ extern "C" { #endif +#ifdef _WIN32_WCE +# ifndef PATH_MAX +# define PATH_MAX 260 +# endif +#endif + /** * @file dlfcn.h diff --git a/legacy/evil/src/lib/evil_stdio.c b/legacy/evil/src/lib/evil_stdio.c index 4d344c1350..3ed0f89545 100644 --- a/legacy/evil/src/lib/evil_stdio.c +++ b/legacy/evil/src/lib/evil_stdio.c @@ -15,10 +15,10 @@ * */ -void perror (const char *s __UNUSED__) -{ - fprintf(stderr, "[Windows CE] error\n"); -} +/* void perror (const char *s __UNUSED__) */ +/* { */ +/* fprintf(stderr, "[Windows CE] error\n"); */ +/* } */ /* * Stream related functions diff --git a/legacy/evil/src/lib/evil_stdio.h b/legacy/evil/src/lib/evil_stdio.h index 80827bf915..c2eea2114f 100644 --- a/legacy/evil/src/lib/evil_stdio.h +++ b/legacy/evil/src/lib/evil_stdio.h @@ -20,7 +20,7 @@ * */ -EAPI void perror (const char *s); +/* EAPI void perror (const char *s); */ /* * Stream related functions