From 75905a9afc0ee89954ede7d08af70d1148bf0fd9 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 5 Feb 2009 09:12:57 +0200 Subject: Various code cleanups the the xz command line tool. It now builds with MinGW. --- src/xz/io.h | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'src/xz/io.h') diff --git a/src/xz/io.h b/src/xz/io.h index 4d8e61b2..87cfdac2 100644 --- a/src/xz/io.h +++ b/src/xz/io.h @@ -17,12 +17,6 @@ // /////////////////////////////////////////////////////////////////////////////// -#ifndef IO_H -#define IO_H - -#include "private.h" - - // Some systems have suboptimal BUFSIZ. Use a bit bigger value on them. #if BUFSIZ <= 1024 # define IO_BUFFER_SIZE 8192 @@ -58,6 +52,10 @@ typedef struct { } file_pair; +/// \brief Initialize the I/O module +extern void io_init(void); + + /// \brief Opens a file pair extern file_pair *io_open(const char *src_name); @@ -93,5 +91,3 @@ extern size_t io_read(file_pair *pair, uint8_t *buf, size_t size); /// \return On success, zero is returned. On error, -1 is returned /// and error message printed. extern bool io_write(const file_pair *pair, const uint8_t *buf, size_t size); - -#endif -- cgit v1.2.3