From d23c8d6cefea2228ee4d5193a0d25b2cab575353 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 20 Apr 2009 04:02:24 +0000 Subject: Update cookie-fopencookie.cpp to the new FILE_Cookie interface. --- libdimensionxx/cookie-fopencookie.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'libdimensionxx') diff --git a/libdimensionxx/cookie-fopencookie.cpp b/libdimensionxx/cookie-fopencookie.cpp index 9fd4e07..78b6e8b 100644 --- a/libdimensionxx/cookie-fopencookie.cpp +++ b/libdimensionxx/cookie-fopencookie.cpp @@ -19,6 +19,10 @@ *************************************************************************/ #include "dimensionxx.hpp" + +#ifndef _GNU_SOURCE +# define _GNU_SOURCE +#endif #include // The conundrum: libdimension and libdimension-* use C I/O, with FILE*'s. @@ -145,8 +149,8 @@ namespace Dimension } // Make an I/O FILE_Cookie - FILE_Cookie::FILE_Cookie(std::istream& istr, std::ostream& ostr) - : m_istr(&istr), m_ostr(&ostr) + FILE_Cookie::FILE_Cookie(std::iostream& iostr) + : m_istr(&iostr), m_ostr(&iostr) { cookie_io_functions_t io_funcs; io_funcs.read = &cookie_read; -- cgit v1.2.3