scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | Submodules | README | LICENSE

commit c2b731752167ad271b3677a4ed7497cdb70d6eb3
parent e1c1dcc639414bc49f889d2d2461d53785e68153
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 16 Apr 2019 10:52:53 +0100

[libc] Use the common values for seek constants

These values can take any value, but traditionally they
had specific values, and bad written code can depend
of them.

Diffstat:
Minclude/stdio.h | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/stdio.h b/include/stdio.h @@ -12,9 +12,9 @@ #endif #define EOF -1 -#define SEEK_CUR 0 -#define SEEK_END 1 -#define SEEK_SET 2 +#define SEEK_SET 0 +#define SEEK_CUR 1 +#define SEEK_END 2 #define _IOWRITE (1 << 0)