summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-03-13 14:52:56 +0100
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2015-03-13 14:52:56 +0100
commit5d1ff67268da549543234651291d9bf2119af1ad (patch)
tree53c96bc541948b4602303416ecea689573721cf4
parentaa53d52798687aa884e5b95d36a013f33c694eaf (diff)
on Windows with mingw EOF was not defined
-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