"vsnprintf()" is unsupported on Windows CE. The closest match is "_vsnprintf()".

This commit is contained in:
Koutheir Attouchi 2016-04-12 09:25:37 +02:00
parent 03f32f2aa1
commit 201a0a1757

4
cs.c
View File

@ -88,7 +88,11 @@ cs_malloc_t cs_mem_malloc = malloc;
cs_calloc_t cs_mem_calloc = calloc; cs_calloc_t cs_mem_calloc = calloc;
cs_realloc_t cs_mem_realloc = realloc; cs_realloc_t cs_mem_realloc = realloc;
cs_free_t cs_mem_free = free; cs_free_t cs_mem_free = free;
#if defined(_WIN32_WCE)
cs_vsnprintf_t cs_vsnprintf = _vsnprintf;
#else // !_WIN32_WCE
cs_vsnprintf_t cs_vsnprintf = vsnprintf; cs_vsnprintf_t cs_vsnprintf = vsnprintf;
#endif // _WIN32_WCE
#else #else
extern void* kern_os_malloc(size_t size); extern void* kern_os_malloc(size_t size);
extern void kern_os_free(void* addr); extern void kern_os_free(void* addr);