6 #if defined( WIN32 ) || defined( WINCE )
10 typedef std::wstring tstring;
11 typedef wchar_t tchar_t;
12 typedef std::wstringstream tstringstream;
14 #define _t(quote) L##quote
16 #define t_strlen wcslen
17 #define t_strcmp wcscmp
18 #define t_strncmp wcsncmp
19 #define t_strcasecmp _wcsicmp
20 #define t_strncasecmp _wcsnicmp
21 #define t_strtol wcstol
23 #define t_strtod wcstod
24 #define t_itoa(value, buffer, size, radix) _itow_s(value, buffer, size, radix)
25 #define t_strstr wcsstr
26 #define t_tolower towlower
27 #define t_isdigit iswdigit
31 typedef std::string tstring;
33 typedef std::stringstream tstringstream;
35 #define _t(quote) quote
37 #define t_strlen strlen
38 #define t_strcmp strcmp
39 #define t_strncmp strncmp
40 #define t_strcasecmp _stricmp
41 #define t_strncasecmp _strnicmp
42 #define t_strtol strtol
44 #define t_strtod strtod
45 #define t_itoa(value, buffer, size, radix) _itoa_s(value, buffer, size, radix)
46 #define t_strstr strstr
47 #define t_tolower tolower
48 #define t_isdigit isdigit
53 // typedef unsigned __int64 uint_ptr;
55 // typedef unsigned int uint_ptr;
57 typedef void* uint_ptr;
62 typedef std::string tstring;
64 typedef void* uint_ptr;
65 typedef std::stringstream tstringstream;
67 #define _t(quote) quote
69 #define t_strlen strlen
70 #define t_strcmp strcmp
71 #define t_strncmp strncmp
73 #define t_strcasecmp strcasecmp
74 #define t_strncasecmp strncasecmp
75 #define t_itoa(value, buffer, size, radix) snprintf(buffer, size, "%d", value)
77 #define t_strtol strtol
79 #define t_strtod strtod
80 #define t_strstr strstr
81 #define t_tolower tolower
82 #define t_isdigit isdigit
87 #endif // LH_OS_TYPES_H