mirror of
https://github.com/arehnman/yttrium-virtio-gpu.git
synced 2026-10-31 02:05:04 +00:00
clang-format always check one \n at the end of file. Jira: https://issues.redhat.com/browse/RHEL-65784 Signed-off-by: Konstantin Kostiuk <[email protected]>
47 lines
1.2 KiB
C++
47 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#pragma warning(push, 3)
|
|
#pragma warning(disable:4995) //name was marked as #pragma deprecated
|
|
#include <string>
|
|
#include <iostream>
|
|
#include <iomanip>
|
|
#include <exception>
|
|
#include <sstream>
|
|
#include <list>
|
|
#pragma warning(pop)
|
|
|
|
using std::string;
|
|
using std::wstring;
|
|
using std::stringstream;
|
|
using std::wstringstream;
|
|
using std::wcout;
|
|
using std::cout;
|
|
using std::list;
|
|
using std::allocator;
|
|
|
|
string __wstring2string(const wstring& str);
|
|
wstring __string2wstring(const string& str);
|
|
|
|
#if defined(UNICODE)
|
|
typedef wstring tstring;
|
|
typedef wstringstream tstringstream;
|
|
# define tcout wcout
|
|
# define tstring2string(str) __wstring2string(str)
|
|
# define string2tstring(str) __string2wstring(str)
|
|
# define tstring2wstring(str) (str)
|
|
# define wstring2tstring(str) (str)
|
|
#else
|
|
typedef string tstring;
|
|
typedef stringstream tstringstream;
|
|
# define tcout cout
|
|
# define tstring2string(str) (str)
|
|
# define string2tstring(str) (str)
|
|
# define tstring2wstring(str) __string2wstring(str)
|
|
# define wstring2tstring(str) __wstring2string(str)
|
|
#endif
|
|
|
|
|
|
typedef list<tstring, allocator<tstring>> neTKVMTStrList;
|
|
|
|
#define TBUF_SIZEOF(a) ARRAY_SIZE(a)
|