Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.0 KiB

  1. //////////////////////////////////////////////////////////////////////////
  2. // Copyright (C) Microsoft Corporation, 2000.
  3. // File: widestr.h -- defines WIDESTR and WIDECHAR macros for cross
  4. // platform code development.
  5. //
  6. // This file is intended to be included in all files where the
  7. // the unicode string prefix L"str" or L'c' is replaced by
  8. // WIDESTR("str") or WIDECHAR('c') respectively.
  9. //
  10. // Raj Nakkiran. Nov 1,2000
  11. //
  12. // Revisions:
  13. //
  14. //////////////////////////////////////////////////////////////////////////
  15. #ifndef __WIDESTR_H__
  16. #define __WIDESTR_H__
  17. //
  18. // For Cross platform code, win2linux library provides
  19. // two-byte unicode support on all platforms. This is
  20. // true even in plaforms like linux/GCC where native
  21. // unicode is 4-bytes.
  22. //
  23. #ifdef XPLAT
  24. #include "win2linux.h"
  25. #else // ! XPLAT
  26. #ifndef WIDESTR
  27. #define WIDESTR(x) L##x /* XPLAT */
  28. #endif
  29. #ifndef WIDECHAR
  30. #define WIDECHAR(x) L##x /* XPLAT */
  31. #endif
  32. #endif // ! XPLAT
  33. #endif // __WIDESTR_H__ EOF.