summaryrefslogtreecommitdiffstats
path: root/win/cat.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-16 14:03:34 (GMT)
committernijtmans <nijtmans>2010-11-16 14:03:34 (GMT)
commite02c453ac1080eb369646528c2fa0eee8510ba83 (patch)
tree55736a49d6e36c10e72b9b7a57db9b3d31d34406 /win/cat.c
parenta4c47fe21756aaa1d76d7e820521184abbe07178 (diff)
downloadtcl-e02c453ac1080eb369646528c2fa0eee8510ba83.zip
tcl-e02c453ac1080eb369646528c2fa0eee8510ba83.tar.gz
tcl-e02c453ac1080eb369646528c2fa0eee8510ba83.tar.bz2
Bring compilation under mingw-w64 a bit closer to reality
Diffstat (limited to 'win/cat.c')
-rw-r--r--win/cat.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/win/cat.c b/win/cat.c
index c91e0d2..528a4bf 100644
--- a/win/cat.c
+++ b/win/cat.c
@@ -8,9 +8,15 @@
* 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 $
+ * RCS: @(#) $Id: cat.c,v 1.6 2010/11/16 14:03:34 nijtmans Exp $
*/
+#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>
@@ -18,9 +24,10 @@
# include <io.h>
#endif
#include <string.h>
+#include <tchar.h>
int
-main(void)
+_tmain(void)
{
char buf[1024];
int n;