summaryrefslogtreecommitdiffstats
path: root/libc/include/stdio.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-02 14:02:09 -0800
committerElliott Hughes <enh@google.com>2015-02-02 14:02:09 -0800
commit1ed337dbdfd419db0365f4457b96fe129d21db90 (patch)
treee6048080c31d0a46d3270b6faa0267f23cd8620b /libc/include/stdio.h
parentc57b5c5094f915ff975a256e086d58e2e7cfedf1 (diff)
downloadbionic-1ed337dbdfd419db0365f4457b96fe129d21db90.zip
bionic-1ed337dbdfd419db0365f4457b96fe129d21db90.tar.gz
bionic-1ed337dbdfd419db0365f4457b96fe129d21db90.tar.bz2
Clean up SEEK_SET definitions.
If we lose the #ifndef, the compiler will tell us if the definitions of SEEK_SET and friends ever get out of sync. Change-Id: I357cabec7c9cd451c604342344f210bba20fb6bc
Diffstat (limited to 'libc/include/stdio.h')
-rw-r--r--libc/include/stdio.h13
1 files changed, 3 insertions, 10 deletions
diff --git a/libc/include/stdio.h b/libc/include/stdio.h
index c0dac1a..b04aa24 100644
--- a/libc/include/stdio.h
+++ b/libc/include/stdio.h
@@ -207,16 +207,9 @@ extern FILE* stderr;
#define L_tmpnam 1024 /* XXX must be == PATH_MAX */
#define TMP_MAX 308915776
-/* Always ensure that these are consistent with <fcntl.h> and <unistd.h>! */
-#ifndef SEEK_SET
-#define SEEK_SET 0 /* set file offset to offset */
-#endif
-#ifndef SEEK_CUR
-#define SEEK_CUR 1 /* set file offset to current plus offset */
-#endif
-#ifndef SEEK_END
-#define SEEK_END 2 /* set file offset to EOF plus offset */
-#endif
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
/*
* Functions defined in ANSI C standard.