scc

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

commit 97e0fc1740bc215a13db2cfd11614a3cc2096800
parent a2b6dcce1c7971f31ffe10c2029d26ed72e32dc8
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)