From ed4c5d2cb5cf44302fc9cea4561bbac101d94b0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Thu, 7 Oct 2004 09:24:08 +0000 Subject: [PATCH] enhance windoze compatibility --- mrw/auto.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/mrw/auto.hpp b/mrw/auto.hpp index b903b8e..9eda272 100644 --- a/mrw/auto.hpp +++ b/mrw/auto.hpp @@ -9,6 +9,9 @@ @license LGPL, see file COPYING $Log$ + Revision 1.4 2004/10/07 09:24:08 marc + enhance windoze compatibility + Revision 1.3 2004/08/28 16:21:25 marc mrw-c++-0.92 (mrw) - new file: version.cpp @@ -28,6 +31,7 @@ #include // size_t #include // munmap, PROT_READ, MAP_SHARED +#include // close #include // forward @@ -177,7 +181,7 @@ namespace mrw { }; inline void munmap(MMapHandle& res) throw(std::bad_exception) { if (res.first!=0 && res.second>0) - ::munmap(res.first, res.second); + ::munmap((char*)res.first, res.second); // char* conversion for windoze cygwin compatibility } /** @brief Automatically calls @c munmap on destruction for mmaped files. @pre #include