Warning, /graphics/kst-plot/cmake/3rdparty/gsl/gsl-msvc.patch is written in an unsupported language. File is not indexed.
0001
0002 diff --git a/bspline/bspline.h b/bspline/bspline.h
0003 index f80e03e..67d000a 100644
0004 diff --git a/templates_on.h b/templates_on.h
0005 index cd32eff..dde02c3 100644
0006 --- a/templates_on.h
0007 +++ b/templates_on.h
0008 @@ -20,6 +20,10 @@
0009 #define BASE_EPSILON GSL_DBL_EPSILON
0010
0011 #elif defined(BASE_GSL_COMPLEX)
0012 +#ifdef _MSC_VER
0013 + #define VCPP_MATH_COMPLEX complex // Workaround of problems caused by complex, defined as _complex in Math.h of MS-VC++
0014 + #undef complex
0015 +#endif
0016 #define BASE gsl_complex
0017 #define SHORT complex
0018 #define SHORT_REAL
0019 @@ -32,6 +36,11 @@
0020 #define ZERO {{0.0,0.0}}
0021 #define ONE {{1.0,0.0}}
0022 #define BASE_EPSILON GSL_DBL_EPSILON
0023 +#ifdef _MSC_VER
0024 + #undef complex
0025 + #define complex VCPP_MATH_COMPLEX
0026 +#endif
0027 +
0028
0029 #elif defined(BASE_GSL_COMPLEX_FLOAT)
0030 #define BASE gsl_complex_float