[SHELL32]
[reactos.git] / reactos / tools / ssprintf.h
1 /*
2 * This program is free software; you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation; either version 2 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License along
13 * with this program; if not, write to the Free Software Foundation, Inc.,
14 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15 */
16
17 #pragma once
18
19 #include <string>
20 #include <stdarg.h>
21
22 #ifdef __CYGWIN__
23 namespace std {
24 typedef basic_string<wchar_t> wstring;
25 }
26 #endif
27
28 std::string ssprintf ( const char* fmt, ... );
29 std::string ssvprintf ( const char* fmt, va_list args );
30
31 std::wstring sswprintf ( const wchar_t* fmt, ... );
32 std::wstring sswvprintf ( const wchar_t* fmt, va_list args );
33
34 #ifdef _UNICODE
35 #define sstprintf sswprintf
36 #define sstvprintf sswvprintf
37 #else
38 #define sstprintf ssprintf
39 #define sstvprintf ssvprintf
40 #endif