Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2002-04-20 09:27:46 +0400
committerDanny Smith <dannysmith@users.sourceforge.net>2002-04-20 09:27:46 +0400
commit57fd42afdfb5aa938d813c446086d337c13fb6f7 (patch)
tree9c009f7628a74be4d966a9aa6b327d75cbd06d39
parent10e835062da5f477ad46645c596cd8541f41db11 (diff)
* include/tchar.h (_tputenv): Add UNICODE mappings.
(_tsearchenv): Likewise. (_tmakepath): Likewise. (_tsplitpath): Likewise. (_tfullpath): Likewise. (__TEXT): Make same as define in w32api/include/winnt.h.
-rw-r--r--winsup/mingw/ChangeLog13
-rw-r--r--winsup/mingw/include/tchar.h14
2 files changed, 25 insertions, 2 deletions
diff --git a/winsup/mingw/ChangeLog b/winsup/mingw/ChangeLog
index c27951cfe..e424858cc 100644
--- a/winsup/mingw/ChangeLog
+++ b/winsup/mingw/ChangeLog
@@ -1,3 +1,16 @@
+2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/tchar.h (__TEXT): Make same as define in
+ w32api/include/winnt.h.
+
+2002-04-20 Danny Smith <dannysmith@users.sourceforge.net>
+
+ * include/tchar.h (_tputenv): Add UNICODE mappings.
+ (_tsearchenv): Likewise.
+ (_tmakepath): Likewise.
+ (_tsplitpath): Likewise.
+ (_tfullpath): Likewise.
+
2002-04-18 Pascal Obry <obry@gnat.com>
* mingwex/dirent.c (opendir): Convert given pathname to
diff --git a/winsup/mingw/include/tchar.h b/winsup/mingw/include/tchar.h
index 0e4676675..2b19c16a7 100644
--- a/winsup/mingw/include/tchar.h
+++ b/winsup/mingw/include/tchar.h
@@ -67,7 +67,7 @@ typedef wchar_t _TCHAR;
* macro within your programs. It's name and function could change without
* notice.
*/
-#define __TEXT(x) L##x
+#define __TEXT(q) L##q
/* for porting from other Windows compilers */
#if 0 // no wide startup module
@@ -189,6 +189,11 @@ typedef wchar_t _TCHAR;
#define _tfindnext _wfindnext
#define _tfopen _wfopen
#define _tgetenv _wgetenv
+#define _tputenv _wputenv
+#define _tsearchenv _wsearchenv
+#define _tmakepath _wmakepath
+#define _tsplitpath _wsplitpath
+#define _tfullpath _wfullpath
#define _tmktemp _wmktemp
#define _topen _wopen
#define _tremove _wremove
@@ -221,7 +226,7 @@ typedef char _TCHAR;
* macro within your programs. It's name and function could change without
* notice.
*/
-#define __TEXT(x) x
+#define __TEXT(q) q
/* for porting from other Windows compilers */
#define _tmain main
@@ -252,6 +257,11 @@ typedef char _TCHAR;
#define _fputts fputs
#define _tfopen fopen
#define _tgetenv getenv
+#define _tputenv _putenv
+#define _tsearchenv _searchenv
+#define _tmakepath _makepath
+#define _tsplitpath _splitpath
+#define _tfullpath _fullpath
#define _gettc getc
#define _getts gets
#define _puttc putc