summaryrefslogtreecommitdiffstats
path: root/generic/tkMain.c
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-05 08:20:00 (GMT)
committernijtmans <nijtmans>2010-11-05 08:20:00 (GMT)
commitf922d2cb5aba4b95fd627e4a391e6690de216ad3 (patch)
tree884edf6ad50bce345c5207b9da5f101aa1609ace /generic/tkMain.c
parent434842bf7d8cff430b799977c6a0b4e62f94b291 (diff)
downloadtk-f922d2cb5aba4b95fd627e4a391e6690de216ad3.zip
tk-f922d2cb5aba4b95fd627e4a391e6690de216ad3.tar.gz
tk-f922d2cb5aba4b95fd627e4a391e6690de216ad3.tar.bz2
Sync TK_ASCII_MAIN usage with tclMain.c
Diffstat (limited to 'generic/tkMain.c')
-rw-r--r--generic/tkMain.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/generic/tkMain.c b/generic/tkMain.c
index 96c6159..71927c3 100644
--- a/generic/tkMain.c
+++ b/generic/tkMain.c
@@ -13,7 +13,7 @@
* See the file "license.terms" for information on usage and redistribution of
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkMain.c,v 1.34 2010/09/29 20:10:57 nijtmans Exp $
+ * RCS: @(#) $Id: tkMain.c,v 1.35 2010/11/05 08:20:00 nijtmans Exp $
*/
/**
@@ -21,9 +21,14 @@
* TK_ASCII_MAIN defined. This way both Tk_MainEx and Tk_MainExW
* can be implemented, sharing the same source code.
*/
-#ifndef TK_ASCII_MAIN
-# undef UNICODE
-# undef _UNICODE
+#if defined(TK_ASCII_MAIN)
+# ifdef UNICODE
+# undef UNICODE
+# undef _UNICODE
+# else
+# define UNICODE
+# define _UNICODE
+# endif
#endif
#include <ctype.h>