vCalendar: Honor VTIMEZONE component if present
[claws.git] / src / plugins / litehtml_viewer / litehtml / os_types.h
blobbbc2c3cf638953896c127c4efe519f06b8ff7597
1 #ifndef LH_OS_TYPES_H
2 #define LH_OS_TYPES_H
4 #include <string>
5 #include <cstdint>
7 namespace litehtml
9 using std::string;
10 typedef std::uintptr_t uint_ptr;
12 #if defined( WIN32 ) || defined( _WIN32 ) || defined( WINCE )
14 // noexcept appeared since Visual Studio 2015
15 #if defined(_MSC_VER) && _MSC_VER < 1900
16 #define noexcept
17 #endif
19 #define t_itoa(value, buffer, size, radix) _itoa_s(value, buffer, size, radix)
20 #define t_snprintf(s, n, format, ...) _snprintf_s(s, _TRUNCATE, n, format, __VA_ARGS__)
22 #else
24 #define t_itoa(value, buffer, size, radix) snprintf(buffer, size, "%d", value)
25 #define t_snprintf(s, n, format, ...) snprintf(s, n, format, __VA_ARGS__)
27 #endif
30 #endif // LH_OS_TYPES_H