boost_no_cwchar.ipp 692 B

123456789101112131415161718192021222324252627282930313233
  1. // (C) Copyright John Maddock 2001.
  2. // Use, modification and distribution are subject to the
  3. // Boost Software License, Version 1.0. (See accompanying file
  4. // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. // See http://www.boost.org/libs/config for most recent version.
  6. // MACRO: BOOST_NO_CWCHAR
  7. // TITLE: <wchar.h> and <cwchar>
  8. // DESCRIPTION: The Platform does not provide <wchar.h> and <cwchar>.
  9. #include <cwchar>
  10. #include <wchar.h>
  11. namespace boost_no_cwchar{
  12. int test()
  13. {
  14. wchar_t c1[2] = { 0 };
  15. wchar_t c2[2] = { 0 };
  16. if(wcscmp(c1,c2) || wcslen(c1)) return -1;
  17. //wcscpy(c1,c2);
  18. wcsxfrm(c1,c2,0);
  19. return 0;
  20. }
  21. }