| Line | |
|---|
| 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 | |
|---|
| 15 | namespace boost_no_cwchar{ |
|---|
| 16 | |
|---|
| 17 | int test() |
|---|
| 18 | { |
|---|
| 19 | wchar_t c1[2] = { 0 }; |
|---|
| 20 | wchar_t c2[2] = { 0 }; |
|---|
| 21 | if(wcscmp(c1,c2) || wcslen(c1)) return -1; |
|---|
| 22 | wcscpy(c1,c2); |
|---|
| 23 | wcsxfrm(c1,c2,0); |
|---|
| 24 | return 0; |
|---|
| 25 | } |
|---|
| 26 | |
|---|
| 27 | } |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
Note: See
TracBrowser
for help on using the repository browser.