Overview
| Artifact ID: | d7a3e4d98025e0893b5055d7f09541035d30b21a |
|---|---|
| Ticket: | 442178ffffffffffffffffffffffffffffffffff
Cygwin TCHAR in tclPlatDecls.h fix |
| User & Date: | mdejong on 2001-07-18 07:43:52 |
Changes
- icomment:
Logged In: YES user_id=90858 I looked at the patch, but I still don't understand what that "elif !defined(_INC_TCHAR)" bit is for. The MSVC include file checks to see if _INC_TCHAR is defined so there is no danger of including tchar.h twice: % cat t3.c #include <tchar.h> #include <tchar.h> int main() {} % cl -c t3.c What is up with that? Why not just do this: #if defined(__WIN32__) # if defined(__CYGWIN__) # define WIN32_LEAN_AND_MEAN # include <windows.h> # undef WIN32_LEAN_AND_MEAN # else # include <tchar.h> # endif #endif Or, if it does not matter, could we just do this? #ifdef __WIN32__ # define WIN32_LEAN_AND_MEAN # include <windows.h> # undef WIN32_LEAN_AND_MEAN #endif - login: "mdejong"
- mimetype: "text/plain"
- username: "mdejong"