stdio: use non-zero values for SEEK_*

libstdc++ uses 0, SEEK_CUR, SEEK_END in an internal enumeration. By
having SEEK_CUR=0 we would have a duplicate case.
This commit is contained in:
Lephenixnoir 2022-08-13 00:01:30 +02:00
parent 8231557ff5
commit 4b61daa602
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 3 additions and 3 deletions

View File

@ -125,9 +125,9 @@ typedef size_t fpos_t;
#define L_tmpnam FILENAME_MAX
/* Seeking positions. */
#define SEEK_CUR 0
#define SEEK_END 1
#define SEEK_SET 2
#define SEEK_CUR 1
#define SEEK_END 2
#define SEEK_SET 3
/* Maximum number of unique filenames that tmpnam can generate. */
/* TODO: Set a useful value in TMP_MAX other than 16*16*16 */