summaryrefslogtreecommitdiff
path: root/win32/win32.h
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2006-11-06 16:26:48 +0000
committerSteve Hay <SteveHay@planit.com>2006-11-06 16:26:48 +0000
commit0448a0bdbfbd5e00696d6b3361b97fb1190434c1 (patch)
treeaee26d3aecc84963e69f9af0e0096db9101578d1 /win32/win32.h
parentf8e2af1d968a8698b0c7b9d7a7879c75d8529d80 (diff)
downloadperl-0448a0bdbfbd5e00696d6b3361b97fb1190434c1.tar.gz
Get Visual C++ 2005 (aka Visual C++ 8.x) support off the ground
This is not a complete fix yet by any means (there are lots of compiler warnings and lots of test failures), but it's a step in the right direction. See the thread starting here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-10/msg00893.html and continuing here: http://www.xray.mpe.mpg.de/mailing-lists/perl5-porters/2006-11/msg00102.html for further information p4raw-id: //depot/perl@29218
Diffstat (limited to 'win32/win32.h')
-rw-r--r--win32/win32.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/win32/win32.h b/win32/win32.h
index 2a87528f1d..f761211d5f 100644
--- a/win32/win32.h
+++ b/win32/win32.h
@@ -510,6 +510,15 @@ typedef struct {
char pipech; /* one char buffer for handles opened on pipes */
int lockinitflag;
CRITICAL_SECTION lock;
+#if _MSC_VER >= 1400
+# ifndef _SAFECRT_IMPL
+ /* Not used in the safecrt downlevel. We do not define them, so we cannot
+ * use them accidentally */
+ char textmode : 7;/* __IOINFO_TM_ANSI or __IOINFO_TM_UTF8 or __IOINFO_TM_UTF16LE */
+ char unicode : 1; /* Was the file opened as unicode? */
+ char pipech2[2]; /* 2 more peak ahead chars for UNICODE mode */
+# endif
+#endif
} ioinfo;