From e18fd199e209d6b73f7214122fa64eb36ac7513a Mon Sep 17 00:00:00 2001 From: David Ludwig Date: Sun, 3 Feb 2013 12:33:15 -0500 Subject: [PATCH] WinRT: use OS-native vsnprintf, which allows SDL_Log to format wide strings (via %ls) --- VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj | 12 ++++++------ include/SDL_config_windowsrt.h | 1 + 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj index 53a3bb345..9e5306e39 100644 --- a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj +++ b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj @@ -410,7 +410,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console @@ -424,7 +424,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console @@ -438,7 +438,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console @@ -452,7 +452,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console @@ -466,7 +466,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console @@ -480,7 +480,7 @@ NotUsing false ..\..\include;%(AdditionalIncludeDirectories) - _WINDLL;%(PreprocessorDefinitions) + _WINDLL;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions) Console diff --git a/include/SDL_config_windowsrt.h b/include/SDL_config_windowsrt.h index c9af3fda1..98f01579e 100644 --- a/include/SDL_config_windowsrt.h +++ b/include/SDL_config_windowsrt.h @@ -117,6 +117,7 @@ typedef unsigned int uintptr_t; #define HAVE_STRNCMP 1 #define HAVE__STRICMP 1 #define HAVE__STRNICMP 1 +#define HAVE_VSNPRINTF 1 //#define HAVE_SSCANF 1 // TODO, WinRT: consider using sscanf_s instead #define HAVE_M_PI 1 #define HAVE_ATAN 1