From 5d1ff67268da549543234651291d9bf2119af1ad Mon Sep 17 00:00:00 2001 From: Emiel Bruijntjes Date: Fri, 13 Mar 2015 14:52:56 +0100 Subject: on Windows with mingw EOF was not defined --- common/streambuf.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'common') diff --git a/common/streambuf.h b/common/streambuf.h index ed1506a..9d6a192 100644 --- a/common/streambuf.h +++ b/common/streambuf.h @@ -14,6 +14,14 @@ */ namespace Php { +/** + * Issue reported by user on a Windows / Mingw32 platform: EOF was + * not defined. Let's defined it ourselves + */ +#ifndef EOF +# define EOF (-1) +#endif + /** * Class definition */ -- cgit v1.2.3