You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using versions above 1.3.275, vulkan_structs.hpp checks for WIN32 define, which MSVC doesn't provide, making certain functions call strncpy instead of strncpy_s, which is used in versions 1.3.275 and below. Only encountered this issue when I upgraded to 1.3.296.
Giving this error:
'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
An easy/temporary fix is to do this in every place that vulkan.hpp is included, which a bunch of people told me was the best option:
This solution isn't the best though. MSVC provides _WIN32 and _WIN64, but are mutually exclusive when compiling.
One way to fix this is to perform an or operation on the WIN32 preprocessor, before any checks.
The text was updated successfully, but these errors were encountered:
When using versions above 1.3.275, vulkan_structs.hpp checks for WIN32 define, which MSVC doesn't provide, making certain functions call strncpy instead of strncpy_s, which is used in versions 1.3.275 and below. Only encountered this issue when I upgraded to 1.3.296.
Giving this error:
An easy/temporary fix is to do this in every place that vulkan.hpp is included, which a bunch of people told me was the best option:
This solution isn't the best though. MSVC provides
_WIN32
and_WIN64
, but are mutually exclusive when compiling.One way to fix this is to perform an or operation on the WIN32 preprocessor, before any checks.
The text was updated successfully, but these errors were encountered: