Adding '#define _USE_MATH_DEFINES' to make M_PI declared in Intel and MSVC compilers (#3238)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Masoud 2025-01-07 10:02:05 +03:30 committed by GitHub
parent 3a001d3de2
commit 393334829d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,8 @@
#include "openmc/plot.h"
#include <algorithm>
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath>
#include <cstdio>
#include <fstream>
#include <sstream>