Skip to content

Commit

Permalink
Internal libjson: fix warning on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rouault committed Jan 8, 2024
1 parent eb8fadb commit ccb472a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ogr/ogrsf_frmts/geojson/libjson/random_seed.c
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,9 @@ static int get_cryptgenrandom_seed(int *seed)
DEBUG_SEED("get_cryptgenrandom_seed");

/* WinNT 4 and Win98 do no support CRYPT_SILENT */
if (LOBYTE(LOWORD(GetVersion())) > 4)
dwFlags |= CRYPT_SILENT;
// E.Rouault: commented out to avoid warning C4996: 'GetVersion': was declared deprecated
//if (LOBYTE(LOWORD(GetVersion())) > 4)
dwFlags |= CRYPT_SILENT;

if (!CryptAcquireContextA(&hProvider, 0, 0, PROV_RSA_FULL, dwFlags))
{
Expand Down

0 comments on commit ccb472a

Please sign in to comment.