Browse Source

Included if guards for MSVC define

Felix 4 năm trước cách đây
mục cha
commit
bb16f09af2
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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>
 /*!