diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-24 11:51:05 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-09-25 15:22:56 -0600 |
| commit | bdf6688bb7e264486298605cd1587cd73938ffe1 (patch) | |
| tree | d0553ca140b5d5782cf8a58a0a4a030b916974e2 /include | |
| parent | e82ce7a40f8c5c3fcc4abc8c3d80f8feea6de757 (diff) | |
| download | usermoji-bdf6688bb7e264486298605cd1587cd73938ffe1.tar.xz | |
misc: Move snprintf define to vk_sdk_platform.h
Windows doesn't define snprintf so we need to #define
it to what Windows does use in our SDK platform header.
Diffstat (limited to 'include')
| -rwxr-xr-x[-rw-r--r--] | include/vk_sdk_platform.h | 9 |
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 |
