summaryrefslogtreecommitdiffstats
path: root/winsup/mingw/include/stdio.h
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2007-01-19 03:21:09 +0000
committerDanny Smith <dannysmith@users.sourceforge.net>2007-01-19 03:21:09 +0000
commit8dabc54e418ecd70365abd3bc0f56d79b3c40de1 (patch)
tree38137426c0caccf5745c2deed28deffe02f71d48 /winsup/mingw/include/stdio.h
parent45fa1f99c6c9f57504c36e7efb653e44d8fe99b6 (diff)
downloadcygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.tar.gz
cygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.tar.bz2
cygnal-8dabc54e418ecd70365abd3bc0f56d79b3c40de1.zip
* include/stdio.h (SEEK_SET, SEEK_CUR, SEEK_END): Define
unconditionally. Change comment. * include/unistd.h (SEEK_SET, SEEK_CUR, SEEK_END): Define here too. * include/io.h (rename): Declare. (remove): Declare.
Diffstat (limited to 'winsup/mingw/include/stdio.h')
-rw-r--r--winsup/mingw/include/stdio.h19
1 files changed, 5 insertions, 14 deletions
diff --git a/winsup/mingw/include/stdio.h b/winsup/mingw/include/stdio.h
index a7070101c..90c0dd976 100644
--- a/winsup/mingw/include/stdio.h
+++ b/winsup/mingw/include/stdio.h
@@ -101,20 +101,11 @@
#define BUFSIZ 512
/* Constants for nOrigin indicating the position relative to which fseek
- * sets the file position. Enclosed in ifdefs because io.h could also
- * define them. (Though not anymore since io.h includes this file now.) */
-#ifndef SEEK_SET
-#define SEEK_SET (0)
-#endif
-
-#ifndef SEEK_CUR
-#define SEEK_CUR (1)
-#endif
-
-#ifndef SEEK_END
-#define SEEK_END (2)
-#endif
-
+ * sets the file position. Defined unconditionally since ISO and POSIX
+ * say they are defined here. */
+#define SEEK_SET 0
+#define SEEK_CUR 1
+#define SEEK_END 2
#ifndef RC_INVOKED