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