Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mumble-voip/mumble.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorRobert Adam <dev@robert-adam.de>2021-03-04 20:39:19 +0300
committerRobert Adam <dev@robert-adam.de>2021-03-06 20:57:22 +0300
commit678e872c2124ec5175106616881f7df41be66647 (patch)
treee34cd09698bf7034b1cb52c9ce055c8688052301 /src/tests
parentff40c92ab4eec3b5d006809f162480e422d3babc (diff)
BUILD(cmake): Always define _USE_MATH_DEFINES
This is needed in order for the <cmath> header to also define constants like M_PI. Instead of manually defining the macro every time before including <cmath>, the macro is now defined via cmake and thus always defined.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/Resample.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tests/Resample.cpp b/src/tests/Resample.cpp
index ec0f256cd..be9fe30d8 100644
--- a/src/tests/Resample.cpp
+++ b/src/tests/Resample.cpp
@@ -15,7 +15,6 @@
#include <QtCore>
-#define _USE_MATH_DEFINES
#include <cmath>
#include <speex/speex_resampler.h>
@@ -132,5 +131,4 @@ int main(int argc, char **argv) {
return 0;
}
-#undef _USE_MATH_DEFINES
#undef ITER