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,4 +1,5 @@
#include <algorithm>
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath>
#include <complex>
#include <cstdlib>

View file

@ -1,7 +1,8 @@
#include "openmc/mesh.h"
#include <algorithm> // for copy, equal, min, min_element
#include <cmath> // for ceil
#include <cstddef> // for size_t
#include <algorithm> // for copy, equal, min, min_element
#define _USE_MATH_DEFINES // to make M_PI declared in Intel and MSVC compilers
#include <cmath> // for ceil
#include <cstddef> // for size_t
#include <gsl/gsl-lite.hpp>
#include <string>

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>