mescc: Support binutils 2.15a: fread: read ungetc'd chars too.
authorJan Nieuwenhuizen <janneke@gnu.org>
Sat, 16 Jun 2018 18:51:16 +0000 (20:51 +0200)
committerJan Nieuwenhuizen <janneke@gnu.org>
Sat, 16 Jun 2018 18:51:16 +0000 (20:51 +0200)
commita9215931e8d40610cf31b9b90a40ce0e08b62c3b
treea1417ce9cb9efbf94f23117127a73de80d4b5d10
parent7a42e5e6b0be59cb18a663196b0ede916d98e0a6
mescc: Support binutils 2.15a: fread: read ungetc'd chars too.

* lib/libmes.c (_ungetc_fd): New variable.
  (fdgetc): Use it.
  (_fdungetc_p): New function.
* lib/libc+tcc.c (_fungetc_p): New function.
* lib/libc+tcc.c (fread): Use it to read ungetc'd chars too.
lib/libc+tcc.c
lib/libmes.c
lib/linux+tcc.c
lib/linux.c