summaryrefslogtreecommitdiff
path: root/libgfortran/io/io.h
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-06 12:40:50 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2007-09-06 12:40:50 +0000
commit52a2cc790e7197d8c9b3dd97d997a547358b86ae (patch)
treeac5f71a479f82aa6113379945ad5bed43bcc8566 /libgfortran/io/io.h
parent523ed882836b403b03e2b0d5c3bf48ef6b3dba0b (diff)
downloadgcc-52a2cc790e7197d8c9b3dd97d997a547358b86ae.tar.gz
* libgfortran.h: Include config.h first.
* io/io.h (struct stream): Rename truncate to trunc. * io/unix.c (fd_open): Same. (open_internal): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/io/io.h')
-rw-r--r--libgfortran/io/io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libgfortran/io/io.h b/libgfortran/io/io.h
index a1138cffac0..18795a27e2e 100644
--- a/libgfortran/io/io.h
+++ b/libgfortran/io/io.h
@@ -54,7 +54,7 @@ typedef struct stream
try (*sfree) (struct stream *);
try (*close) (struct stream *);
try (*seek) (struct stream *, gfc_offset);
- try (*truncate) (struct stream *);
+ try (*trunc) (struct stream *);
int (*read) (struct stream *, void *, size_t *);
int (*write) (struct stream *, const void *, size_t *);
try (*set) (struct stream *, int, size_t);
@@ -74,7 +74,7 @@ stream;
#define salloc_w_at(s, len, where) ((s)->alloc_w_at)(s, len, where)
#define sseek(s, pos) ((s)->seek)(s, pos)
-#define struncate(s) ((s)->truncate)(s)
+#define struncate(s) ((s)->trunc)(s)
#define sread(s, buf, nbytes) ((s)->read)(s, buf, nbytes)
#define swrite(s, buf, nbytes) ((s)->write)(s, buf, nbytes)