Browse Source

Included if guards for MSVC define

Felix 4 years ago
parent
commit
bb16f09af2
1 changed files with 4 additions and 1 deletions
  1. 4 1
      src/functions/acalc.h

+ 4 - 1
src/functions/acalc.h

@@ -1,8 +1,11 @@
 #ifndef ACALC_H
 #define ACALC_H
 
+#if _MSC_VER
+#define _USE_MATH_DEFINES
+#endif
+
 #include <QDateTime>
-#define _USE_MATH_DEFINES // needed for MSVC
 #include <cmath>
 #include <QDebug>
 /*!