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 6// See http://www.boost.org/libs/config for most recent version. 7 8// MACRO: BOOST_NO_CWCHAR 9// TITLE: <wchar.h> and <cwchar> 10// DESCRIPTION: The Platform does not provide <wchar.h> and <cwchar>. 11 12#include <cwchar> 13#include <wchar.h> 14 15namespace boost_no_cwchar{ 16 17int test() 18{ 19 wchar_t c1[2] = { 0 }; 20 wchar_t c2[2] = { 0 }; 21 char c3[2] = { 0 }; 22 mbstate_t mb = mbstate_t(); 23 if(!mbsinit(&mb) || mbrlen(c3,1,&mb)) return -1; 24 if(wcscmp(c1,c2) || wcslen(c1)) return -1; 25 //wcscpy(c1,c2); 26 wcsxfrm(c1,c2,0); 27 return 0; 28} 29 30} 31 32 33 34 35 36 37