summaryrefslogtreecommitdiffstats
path: root/win/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/cat.c')
-rw-r--r--win/cat.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/win/cat.c b/win/cat.c
index c91e0d2..d49e37c 100644
--- a/win/cat.c
+++ b/win/cat.c
@@ -7,20 +7,21 @@
*
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
- *
- * RCS: @(#) $Id: cat.c,v 1.5 2010/01/13 06:46:56 nijtmans Exp $
*/
-#include <stdio.h>
-#ifdef __CYGWIN__
-# include <unistd.h>
-#else
-# include <io.h>
+#ifdef TCL_BROKEN_MAINARGS
+/* On mingw32 and cygwin this doesn't work */
+# undef UNICODE
+# undef _UNICODE
#endif
+
+#include <stdio.h>
+#include <io.h>
#include <string.h>
+#include <tchar.h>
int
-main(void)
+_tmain(void)
{
char buf[1024];
int n;