Photon 1.0.0
Loading...
Searching...
No Matches
os_types.h
Go to the documentation of this file.
1#ifndef LH_OS_TYPES_H
2#define LH_OS_TYPES_H
3
4#if defined( WIN32 ) || defined( _WIN32 ) || defined( WINCE )
5
6 #define t_itoa(value, buffer, size, radix) _itoa_s(value, buffer, size, radix)
7 #define t_snprintf(s, n, format, ...) _snprintf_s(s, _TRUNCATE, n, format, __VA_ARGS__)
8
9#else
10
11 #define t_itoa(value, buffer, size, radix) snprintf(buffer, size, "%d", value)
12 #define t_snprintf(s, n, format, ...) snprintf(s, n, format, __VA_ARGS__)
13
14#endif
15
16#endif // LH_OS_TYPES_H