mirror of
https://github.com/Perlmint/glew-cmake.git
synced 2025-03-20 15:56:16 +00:00
Generate Sources of origin/master updated at Mon Jan 28 17:45:47 GMT 2019
This commit is contained in:
parent
923d1cadf3
commit
d36641c3e5
@ -18266,7 +18266,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