summaryrefslogtreecommitdiffstats
path: root/win/cat.c
diff options
context:
space:
mode:
Diffstat (limited to 'win/cat.c')
-rw-r--r--win/cat.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/win/cat.c b/win/cat.c
index a67999f..d413923 100644
--- a/win/cat.c
+++ b/win/cat.c
@@ -9,23 +9,12 @@
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
-#ifdef TCL_BROKEN_MAINARGS
-/* On mingw32 and cygwin this doesn't work */
-# undef UNICODE
-# undef _UNICODE
-#endif
-
#include <stdio.h>
-#ifdef __CYGWIN__
-# include <unistd.h>
-#else
-# include <io.h>
-#endif
+#include <io.h>
#include <string.h>
-#include <tchar.h>
int
-_tmain(void)
+main(void)
{
char buf[1024];
int n;