home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / INC.PAK / TCHAR.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  931b  |  50 lines

  1. /* $Copyright: 1995$ */
  2.  
  3. #if !defined(__TCHAR_H)
  4. #define __TCHAR_H
  5.  
  6. #ifdef  __cplusplus
  7. extern "C" {
  8. #endif
  9.  
  10. #if defined(_UNICODE)
  11.  
  12. #ifndef __TCHAR_DEFINED
  13. typedef wchar_t     _TCHAR;
  14. typedef wchar_t     _TSCHAR;
  15. typedef wchar_t     _TUCHAR;
  16. typedef wchar_t     _TXCHAR;
  17. #if !defined (__BORLANDC__)  /* Borland C++ does not support 64-bit chars */
  18.   typedef wint_t      _TINT;
  19. #endif /* __BORLANDC__ */
  20. #define __TCHAR_DEFINED
  21. #endif
  22.  
  23. #define _TEOF        WEOF
  24. #define __T(x)        L ## x
  25.  
  26. #else
  27.  
  28. #ifndef __TCHAR_DEFINED
  29. typedef char            _TCHAR;
  30. typedef signed char     _TSCHAR;
  31. typedef unsigned char   _TUCHAR;
  32. typedef char            _TXCHAR;
  33. typedef int             _TINT;
  34. #define __TCHAR_DEFINED
  35. #endif
  36.  
  37. #define _TEOF       EOF
  38. #define __T(x)      x
  39.  
  40. #endif     /* _UNICODE */
  41.  
  42. #define _TEXT(x)    __T(x)
  43. #define _T(x)       __T(x)
  44.  
  45. #ifdef __cplusplus
  46. }
  47. #endif
  48.  
  49. #endif    /* __TCHAR_H */
  50.