mirror of
https://github.com/boostorg/config.git
synced 2025-10-28 22:31:45 +01:00
29 lines
615 B
Plaintext
29 lines
615 B
Plaintext
|
|
// (C) Copyright John Maddock 2001. Permission to copy, use, modify, sell and
|
||
|
|
// distribute this software is granted provided this copyright notice appears
|
||
|
|
// in all copies. This software is provided "as is" without express or implied
|
||
|
|
// warranty, and with no claim as to its suitability for any purpose.
|
||
|
|
|
||
|
|
// MACRO: BOOST_NO_SWPRINTF
|
||
|
|
// TITLE: swprintf
|
||
|
|
// DESCRIPTION: The platform does not have a conforming version of swprintf.
|
||
|
|
|
||
|
|
#include <wchar.h>
|
||
|
|
#include <stdio.h>
|
||
|
|
|
||
|
|
|
||
|
|
namespace boost_no_swprintf{
|
||
|
|
|
||
|
|
int test()
|
||
|
|
{
|
||
|
|
wchar_t buf[10];
|
||
|
|
swprintf(buf, 10, L"%d", 10);
|
||
|
|
return 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
|