diff --git a/lib/jkqtcommon/private/jkqtcommon_precomp.h b/lib/jkqtcommon/private/jkqtcommon_precomp.h
index 4400eb3aa6..80671e7538 100644
--- a/lib/jkqtcommon/private/jkqtcommon_precomp.h
+++ b/lib/jkqtcommon/private/jkqtcommon_precomp.h
@@ -23,6 +23,7 @@
You should have received a copy of the GNU Lesser General Public License (LGPL)
along with this program. If not, see .
*/
+#define _USE_MATH_DEFINES
#include
diff --git a/lib/jkqtmathtext/private/jkqtmathtext_precomp.h b/lib/jkqtmathtext/private/jkqtmathtext_precomp.h
index 3b26298097..ca835cc8de 100644
--- a/lib/jkqtmathtext/private/jkqtmathtext_precomp.h
+++ b/lib/jkqtmathtext/private/jkqtmathtext_precomp.h
@@ -24,8 +24,7 @@
along with this program. If not, see .
*/
-
-
+#define _USE_MATH_DEFINES
#include "jkqtcommon/jkqtpcodestructuring.h"
#include "jkqtcommon/jkqtpstringtools.h"
diff --git a/lib/jkqtplotter/private/jkqtplotter_precomp.h b/lib/jkqtplotter/private/jkqtplotter_precomp.h
index f3c2351ab0..2bb33f49ab 100644
--- a/lib/jkqtplotter/private/jkqtplotter_precomp.h
+++ b/lib/jkqtplotter/private/jkqtplotter_precomp.h
@@ -23,6 +23,7 @@
You should have received a copy of the GNU Lesser General Public License (LGPL)
along with this program. If not, see .
*/
+#define _USE_MATH_DEFINES
#include "jkqtcommon/jkqtpbasicimagetools.h"
#include "jkqtcommon/jkqtpcodestructuring.h"