diff options
| author | Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com> | 2020-04-27 23:01:31 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 08:01:31 -0700 |
| commit | 981daa4e98f0fbb5267ae80cd9e2cdaca985dc44 (patch) | |
| tree | b0293ab761d49e9b54f9517955ef3f1e93e1baf5 /ports/gts/fix-M_PI-in-windows.patch | |
| parent | ce08802d88ccd31c0b608f82e9281508808e45ca (diff) | |
| download | vcpkg-981daa4e98f0fbb5267ae80cd9e2cdaca985dc44.tar.gz vcpkg-981daa4e98f0fbb5267ae80cd9e2cdaca985dc44.zip | |
[gts] Support for build with cmake in unix (#10055)
* [gts] Support for build with cmake in unix
* update baseline
* [gts] Apply patch
* [gts] Fix undefined M_PI in windows
* update baseline
Diffstat (limited to 'ports/gts/fix-M_PI-in-windows.patch')
| -rw-r--r-- | ports/gts/fix-M_PI-in-windows.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/gts/fix-M_PI-in-windows.patch b/ports/gts/fix-M_PI-in-windows.patch new file mode 100644 index 000000000..d573ef080 --- /dev/null +++ b/ports/gts/fix-M_PI-in-windows.patch @@ -0,0 +1,28 @@ +diff --git a/src/curvature.c b/src/curvature.c +index 70f6af2..a5c0187 100644 +--- a/src/curvature.c ++++ b/src/curvature.c +@@ -17,6 +17,9 @@ + * Boston, MA 02111-1307, USA. + */ + ++#ifdef _WIN32 ++#define _USE_MATH_DEFINES ++#endif + #include <math.h> + #include "gts.h" + +diff --git a/src/triangle.c b/src/triangle.c +index 1d82869..47170c6 100644 +--- a/src/triangle.c ++++ b/src/triangle.c +@@ -17,6 +17,9 @@ + * Boston, MA 02111-1307, USA. + */ + ++#ifdef _WIN32 ++#define _USE_MATH_DEFINES ++#endif + #include <math.h> + #include "gts.h" + |
