diff options
author | Mark Young <Mark Young> | 2016-01-06 14:26:04 -0700 |
---|---|---|
committer | Mark Lobodzinski <[email protected]> | 2018-05-04 09:31:34 -0600 |
commit | 7b701c3fef69e49f06f877e221c172dadb14a6f1 (patch) | |
tree | 94a342698df99392baebef95b1bd64639232c35e | |
parent | 14db1e07a0c765a67ba37b2c297ccaf8dde1c158 (diff) | |
download | Vulkan-Headers-7b701c3fef69e49f06f877e221c172dadb14a6f1.tar.gz Vulkan-Headers-7b701c3fef69e49f06f877e221c172dadb14a6f1.zip |
Fixes: Fixed Visual Studio warnings during compilation.
Changes to properly detect proper Visual Studio and fix build warnings.
-rwxr-xr-x | include/vulkan/vk_sdk_platform.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vulkan/vk_sdk_platform.h b/include/vulkan/vk_sdk_platform.h index d5e31a8..34b5016 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 |