mirror of
https://github.com/nigels-com/glew.git
synced 2024-11-25 07:15:07 +00:00
[glewinfo] added using of 'sscanf_s' function for some build environment.
This commit is contained in:
parent
7f65a36866
commit
b48ded757e
@ -127,7 +127,11 @@ GLboolean glewParseArgs (int argc, char** argv, struct createParams *params)
|
||||
if (!strcmp(argv[p], "-version"))
|
||||
{
|
||||
if (++p >= argc) return GL_TRUE;
|
||||
#if defined(__STDC_LIB_EXT1__) || (defined(_MSC_VER) && (_MSC_VER >= 1400))
|
||||
if (sscanf_s(argv[p++], "%d.%d", ¶ms->major, ¶ms->minor) != 2) return GL_TRUE;
|
||||
#else
|
||||
if (sscanf(argv[p++], "%d.%d", ¶ms->major, ¶ms->minor) != 2) return GL_TRUE;
|
||||
#endif
|
||||
}
|
||||
else if (!strcmp(argv[p], "-profile"))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user