summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgmcgarry <gmcgarry>2009-01-08 23:18:19 +0000
committergmcgarry <gmcgarry>2009-01-08 23:18:19 +0000
commitee7b9cc26860ebbc1104d6a147055c2a7fc9eb34 (patch)
tree71c37d1a16bea18f1835712ee23d7c6bc87e0a74
parentfa2e9ec309f287f2d8d1c9d9b38b1f9b3b4ea15f (diff)
Limit the size of CPPBUF on win32, which was causing read() to always fail.
-rw-r--r--cpp.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp.h b/cpp.h
index 7e74391..955848f 100644
--- a/cpp.h
+++ b/cpp.h
@@ -55,8 +55,11 @@ extern int ofd;
/* buffer used internally */
#ifndef CPPBUF
-#ifdef __pdp11__
+#if defined(__pdp11__)
#define CPPBUF BUFSIZ
+#elif defined(WIN32)
+/* winxp seems to fail > 26608 bytes */
+#define CPPBUF 16384
#else
#define CPPBUF 65536
#endif