diff --git a/legacy/evil/ChangeLog b/legacy/evil/ChangeLog index 4617296c27..67470568e4 100644 --- a/legacy/evil/ChangeLog +++ b/legacy/evil/ChangeLog @@ -1,3 +1,9 @@ +2011-01-06 Vincent Torri + + * src/lib/evil_stdio.c: + * src/lib/evil_stdio.h: + better perror() declaration / definition + 2011-01-04 Vincent Torri * src/lib/evil_unistd.c: diff --git a/legacy/evil/src/lib/evil_stdio.c b/legacy/evil/src/lib/evil_stdio.c index 3ed0f89545..1fa4922ed6 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 evil_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 c2eea2114f..7d40c1047c 100644 --- a/legacy/evil/src/lib/evil_stdio.h +++ b/legacy/evil/src/lib/evil_stdio.h @@ -20,7 +20,9 @@ * */ -/* EAPI void perror (const char *s); */ +EAPI void evil_perror (const char *s); + +# define perror(s) evil_perror(s) /* * Stream related functions