windows-nt/Source/XPSP1/NT/base/wmi/tests/umtrprov/t_string.h
2020-09-26 16:20:57 +08:00

53 lines
1.3 KiB
C

// t_string.h: interface for the t_string class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_)
#define AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef t_string
#ifndef _UNICODE
// Definitions for WC to MBCS and MBCS to WC routines that do the right thing
// if compiled non-UNICODE.
#define t_string string
#define t_fstream fstream
#define t_istream istream
#define t_ostream ostream
#define t_cout cout
#define t_cin cin
#define t_strstream strstream
#define t_strstreambuf strstreambuf
#define t_ctime ctime
#define t_cerr cerr
#else
// Definitions for WC to MBCS and MBCS to WC routines that do the right thing
// if compiled UNICODE.
#define t_string wstring
#define t_fstream fstream
#define t_istream istream
#define t_ostream ostream
#define t_cout wcout
#define t_cin wcin
#define t_strstream wstringstream
#define t_strstreambuf wstrstreambuf
#define t_ctime _wctime
#define t_cerr wcerr
#endif
#endif
// We do not need conversion routines if compiling under UNICODE
#define mbsrtowcs t_mbsrtowcs
#endif // !defined(AFX_T_STRING_H__32BF27CE_EAD9_11D2_9C53_00A0249F63EB__INCLUDED_)