aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rwxr-xr-x[-rw-r--r--]include/vk_sdk_platform.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/vk_sdk_platform.h b/include/vk_sdk_platform.h
index 0f9b4cad..d5e31a83 100644..100755
--- a/include/vk_sdk_platform.h
+++ b/include/vk_sdk_platform.h
@@ -34,6 +34,15 @@
# undef inline
# define inline __inline
# endif // __cplusplus
+
+// C99:
+// Microsoft didn't implement C99 in Visual Studio; but started adding it with
+// VS2013. However, VS2013 still didn't have snprintf(). The following is a
+// work-around (Note: The _CRT_SECURE_NO_WARNINGS macro must be set in the
+// "CMakeLists.txt" file).
+#define snprintf _snprintf
+#define strdup _strdup
+
#endif // _WIN32
#endif // VK_SDK_PLATFORM_H