5 #error ERROR: Only Win32 target supported!
8 /* Macros for Unicode/ANSI support like in TCHAR.H */
11 #define sntprintf snwprintf
12 #define vsntprintf vsnwprintf
14 #define sntprintf snprintf
15 #define vsntprintf vsnprintf
18 /* Define needed types if they are not yet defined */
25 # ifndef _VA_LIST_DEFINED
26 typedef char * va_list;
27 # define _VA_LIST_DEFINED
36 # ifndef _WCHAR_T_DEFINED
37 typedef unsigned short wchar_t;
38 # define _WCHAR_T_DEFINED
42 #ifndef _SNPRINTF_DLLIMPORT
43 #define _SNPRINTF_DLLIMPORT __declspec( dllimport )
51 /* Implementations of snprintf following the ISO/IEC 9899:1999 (ISO C99)
53 The difference compared to _snprintf is that the buffer always is zero
54 terminated (unless count is zero) and the return value is the number of
55 characters (not including terminating zero) that would have been written
56 even if the buffer wasn't large
57 enough to hold the string. */
62 _SNPRINTF_DLLIMPORT
int __cdecl
snwprintf( wchar_t *buffer
, size_t count
, const wchar_t *format
, ... );
64 /* SBCS and MBCS version */
65 _SNPRINTF_DLLIMPORT
int __cdecl
snprintf( char *buffer
, size_t count
, const char *format
, ... );
67 /* Conflict with STL_port inline implementation */
70 _SNPRINTF_DLLIMPORT
int __cdecl
vsnwprintf( wchar_t *buffer
, size_t count
, const wchar_t *format
, va_list ap
);
72 /* SBCS and MBCS version */
73 _SNPRINTF_DLLIMPORT
int __cdecl
vsnprintf( char *buffer
, size_t count
, const char *format
, va_list ap
);
80 #endif /* _SNPRINTF_H */