From 66fb10b030dc6ff6b517cb3b1c4e9262c6ad1bcc Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 9 Sep 2003 14:27:27 +0000 Subject: [PATCH] Fixes for compilation with mingw. --- src/base64.cpp | 1 + src/mm_io.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/base64.cpp b/src/base64.cpp index aa4bbd715..e141253e4 100644 --- a/src/base64.cpp +++ b/src/base64.cpp @@ -50,6 +50,7 @@ LICENCE: Copyright (c) 2001 Bob Trower, Trantor Standard Systems Inc. #include #include +#include "os.h" #include "base64.h" using namespace std; diff --git a/src/mm_io.cpp b/src/mm_io.cpp index 2ae4d7aa7..5110afe0a 100644 --- a/src/mm_io.cpp +++ b/src/mm_io.cpp @@ -71,10 +71,6 @@ mm_io_c::~mm_io_c() { safefree(file_name); } -const char *mm_io_c::get_file_name() { - return file_name; -} - uint64 mm_io_c::getFilePointer() { return ftello((FILE *)file); } @@ -227,6 +223,10 @@ bool mm_io_c::eof() { #endif +const char *mm_io_c::get_file_name() { + return file_name; +} + string mm_io_c::getline() { char c; string s;