added vsprintf.cpp of Windows platform.
This commit is contained in:
@@ -73,7 +73,8 @@ IF(WIN32)
|
|||||||
Win/EnumVolume.cpp
|
Win/EnumVolume.cpp
|
||||||
Win/ProgramPath.cpp)
|
Win/ProgramPath.cpp)
|
||||||
|
|
||||||
SET(PLATFORM_CODEPAGE_SOURCE Win/CodePage.cpp)
|
SET(PLATFORM_CODEPAGE_SOURCE Win/CodePage.cpp
|
||||||
|
Win/vsprintf.cpp)
|
||||||
|
|
||||||
SET(PLATFORM_SYSTEM_INFO_SOURCE Win/SystemInfo.cpp)
|
SET(PLATFORM_SYSTEM_INFO_SOURCE Win/SystemInfo.cpp)
|
||||||
|
|
||||||
|
14
src/Win/vsprintf.cpp
Normal file
14
src/Win/vsprintf.cpp
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#include<hgl/platform/os/vsprintf.h>
|
||||||
|
#include<stdio.h>
|
||||||
|
namespace hgl
|
||||||
|
{
|
||||||
|
template<> int vsprintf<char>(char *buffer,const size_t buf_max,const char *format,va_list va)
|
||||||
|
{
|
||||||
|
return vsprintf_s(buffer,buf_max,format,va);
|
||||||
|
}
|
||||||
|
|
||||||
|
template<> int vsprintf<wchar_t>(wchar_t *buffer,const size_t buf_max,const wchar_t *format,va_list va)
|
||||||
|
{
|
||||||
|
return vswprintf_s(buffer,buf_max,format,va);
|
||||||
|
}
|
||||||
|
}//namespace hgl
|
Reference in New Issue
Block a user