Open 1623275623 opened 1 year ago
if i define _CRT_SECURE_NO_WARNINGS. the problem maybe solved. but I want know why this problem was happened. have another way to solve it.
Yeah cgltf.h needs something like
#ifndef _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_WARNINGS
#endif
in its implementation section. This won't fully help if cgltf.h is compiled as part of a .cpp file that includes other CRT headers before it, but it's probably the most reasonable solution. One alternative is to just pragma disable these warnings.