aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Young <Mark Young>2016-01-06 14:26:04 -0700
committerMark Young <marky@lunarg.com>2016-01-07 09:45:05 -0700
commit418b9d1241b482696ae352fbd1e15895a44d85f8 (patch)
tree9749f3f0049b9fd8178c6867503b9c0abdfb2fff /include
parenta9857f7c0a6ace5696ffc3921c0e963faca5050e (diff)
downloadusermoji-418b9d1241b482696ae352fbd1e15895a44d85f8.tar.xz
Fixes: Fixed Visual Studio warnings during compilation.
Changes to properly detect proper Visual Studio and fix build warnings.
Diffstat (limited to 'include')
-rwxr-xr-xinclude/vulkan/vk_sdk_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vulkan/vk_sdk_platform.h b/include/vulkan/vk_sdk_platform.h
index d5e31a83..34b50169 100755
--- a/include/vulkan/vk_sdk_platform.h
+++ b/include/vulkan/vk_sdk_platform.h
@@ -35,12 +35,16 @@
# define inline __inline
# endif // __cplusplus
+#if (defined(_MSC_VER) && _MSC_VER < 1900 /*vs2015*/)
// 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).
+// NOTE: This is fixed in Visual Studio 2015.
#define snprintf _snprintf
+#endif
+
#define strdup _strdup
#endif // _WIN32