소스 검색

Included if guards for MSVC define

Felix 4 년 전
부모
커밋
bb16f09af2
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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>
 /*!