Ver Fonte

Included if guards for MSVC define

Felix há 4 anos atrás
pai
commit
bb16f09af2
1 ficheiros alterados com 4 adições e 1 exclusões
  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>
 /*!