summaryrefslogtreecommitdiff
path: root/common/streambuf.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/streambuf.h')
-rw-r--r--common/streambuf.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/common/streambuf.h b/common/streambuf.h
index ed1506a..9d6a192 100644
--- a/common/streambuf.h
+++ b/common/streambuf.h
@@ -15,6 +15,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
*/
class StreamBuf : public std::streambuf