Skip to content

Commit

Permalink
Support compiling with VS 2022 V17.11 (#17028)
Browse files Browse the repository at this point in the history
Fixes #17026

Summary of the issue:
Trying to compile NVDA with Visual Studio 2022 V17.11 produces the following error:

build\x86\local\beeps.cpp(19): error C2039: 'min': is not a member of 'std'
std::min and std::max are defined in <algorithm> which we never include in beeps.cpp. I assume that <cmath> used to include <algorithm> and now it does not.

Description of user facing changes
None.

Description of development approach
Include <algorithm> in beeps.cpp.
  • Loading branch information
michaelDCurran authored and seanbudd committed Sep 9, 2024
1 parent 3e20720 commit 7bcef1b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nvdaHelper/local/beeps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ This license can be found at:
*/
#define _USE_MATH_DEFINES
#include <cmath>
#include <algorithm>
#include "beeps.h"


Expand Down

0 comments on commit 7bcef1b

Please sign in to comment.