summaryrefslogtreecommitdiff
path: root/io.h
diff options
context:
space:
mode:
Diffstat (limited to 'io.h')
-rw-r--r--io.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/io.h b/io.h
index bc15d46e0e8..05789a9c735 100644
--- a/io.h
+++ b/io.h
@@ -31,9 +31,8 @@ typedef struct OpenFile {
#define FMODE_READABLE 1
#define FMODE_WRITABLE 2
#define FMODE_READWRITE 3
-#define FMODE_SYNC 4
-
-void io_wrong_type();
+#define FMODE_BINMODE 4
+#define FMODE_SYNC 8
#define GetOpenFile(obj,fp) ((fp) = RFILE(obj)->fptr)
@@ -47,6 +46,8 @@ void io_wrong_type();
fp->finalize = 0;\
} while (0)
+#define GetWriteFile(fptr) (((fptr)->f2) ? (fptr)->f2 : (fptr)->f)
+
FILE *rb_fopen();
#endif