Changeset 21478 for trunk/include


Ignore:
Timestamp:
Nov 27, 2010, 11:12:39 AM (15 years ago)
Author:
dmik
Message:

Do not define TCHAR twice.

Location:
trunk/include/win
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/windef.h

    r21477 r21478  
    560560/* depend on the UNICODE macro that only exists in user's code. */
    561561
    562 #ifndef __WINE__
     562#if !defined(__WINE__) && !defined(_TCHAR_DEFINED)
     563#define _TCHAR_DEFINED
    563564# ifdef UNICODE
    564565typedef WCHAR TCHAR;
  • trunk/include/win/winnt.h

    r21451 r21478  
    116116typedef const WCHAR    *PCWCH,      *LPCWCH;
    117117
     118#if !defined(_TCHAR_DEFINED)
     119# define _TCHAR_DEFINED
    118120# ifdef UNICODE
    119121typedef WCHAR           TCHAR,      *PTCHAR;
     
    129131#  define __TEXT(string) string
    130132# endif /* UNICODE */
    131 # define TEXT(quote) __TEXT(quote)
     133#endif
     134#define TEXT(quote) __TEXT(quote)
    132135
    133136/* Types */
Note: See TracChangeset for help on using the changeset viewer.