The _IOXXX macros conflict with system headers on Solaris. Prefix
them.

diff --git a/include/msvcrt/stdio.h b/include/msvcrt/stdio.h
index f433af6..7f4f10f 100644
--- a/include/msvcrt/stdio.h
+++ b/include/msvcrt/stdio.h
@@ -15,14 +15,25 @@
 
 
 /* file._flag flags */
-#define _IOREAD   0x0001
-#define _IOWRT    0x0002
-#define _IOMYBUF  0x0008
-#define _IOEOF    0x0010
-#define _IOERR    0x0020
-#define _IOSTRG   0x0040
-#define _IORW     0x0080
-#define _IOAPPEND 0x0200
+#ifndef USE_MSVCRT_PREFIX
+#define _IOREAD          0x0001
+#define _IOWRT           0x0002
+#define _IOMYBUF         0x0008
+#define _IOEOF           0x0010
+#define _IOERR           0x0020
+#define _IOSTRG          0x0040
+#define _IORW            0x0080
+#define _IOAPPEND        0x0200
+#else
+#define MSVCRT__IOREAD   0x0001 
+#define MSVCRT__IOWRT    0x0002 
+#define MSVCRT__IOMYBUF  0x0008 
+#define MSVCRT__IOEOF    0x0010 
+#define MSVCRT__IOERR    0x0020 
+#define MSVCRT__IOSTRG   0x0040 
+#define MSVCRT__IORW     0x0080 
+#define MSVCRT__IOAPPEND 0x0200 
+#endif /* USE_MSVCRT_PREFIX */
 
 
 #ifndef USE_MSVCRT_PREFIX