Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / science / chemistry / ergoscf / math-constants.patch
blob62209f1a3d84f54bfd35ccfd26c7a93cb4145617
1 diff --git a/source/dft/functionals.h b/source/dft/functionals.h
2 index fde49ba..f7a61fc 100644
3 --- a/source/dft/functionals.h
4 +++ b/source/dft/functionals.h
5 @@ -59,6 +59,14 @@
6 #define EXTERN_C
7 #endif
9 +#ifndef M_PI
10 +#define M_PI 3.14159265358979323846
11 +#endif
13 +#ifndef M_SQRT2
14 +#define M_SQRT2 1.41421356237309504880
15 +#endif
17 typedef ergo_real real;
19 #if defined(FUNC_PRECISION) && FUNC_PRECISION == 1