diff options
author | Robert Adam <dev@robert-adam.de> | 2021-03-04 20:39:19 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-03-06 20:57:22 +0300 |
commit | 678e872c2124ec5175106616881f7df41be66647 (patch) | |
tree | e34cd09698bf7034b1cb52c9ce055c8688052301 /src/mumble/ManualPlugin.cpp | |
parent | ff40c92ab4eec3b5d006809f162480e422d3babc (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/mumble/ManualPlugin.cpp')
-rw-r--r-- | src/mumble/ManualPlugin.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mumble/ManualPlugin.cpp b/src/mumble/ManualPlugin.cpp index 38eae17c1..34e185f65 100644 --- a/src/mumble/ManualPlugin.cpp +++ b/src/mumble/ManualPlugin.cpp @@ -3,8 +3,6 @@ // that can be found in the LICENSE file at the root of the // Mumble source tree or at <https://www.mumble.info/LICENSE>. -#define _USE_MATH_DEFINES - #include <QtCore/QtCore> #include <QtGui/QtGui> #include <QtWidgets/QMessageBox> @@ -14,6 +12,7 @@ #include <QPointer> #include <float.h> +#include <cmath> #include "../../plugins/mumble_plugin.h" #include "Global.h" @@ -416,5 +415,3 @@ MumblePlugin *ManualPlugin_getMumblePlugin() { MumblePluginQt *ManualPlugin_getMumblePluginQt() { return &manualqt; } - -#undef _USE_MATH_DEFINES |