aboutsummaryrefslogtreecommitdiff
path: root/ports/tinyexpr/fix-issue-34.patch
diff options
context:
space:
mode:
authormyd7349 <myd7349@gmail.com>2020-10-09 15:41:42 +0800
committerGitHub <noreply@github.com>2020-10-09 00:41:42 -0700
commitdf9c8e260e66713dcf768630cd434caf2c29bbff (patch)
treed40ebc609bb9dfefe2332beb78f252e62734eeb2 /ports/tinyexpr/fix-issue-34.patch
parent95c0643813ad529c0fc1be8d66517b25ab131dd5 (diff)
downloadvcpkg-df9c8e260e66713dcf768630cd434caf2c29bbff.tar.gz
vcpkg-df9c8e260e66713dcf768630cd434caf2c29bbff.zip
[tinyexpr] Add new port (#13729)
Diffstat (limited to 'ports/tinyexpr/fix-issue-34.patch')
-rw-r--r--ports/tinyexpr/fix-issue-34.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/ports/tinyexpr/fix-issue-34.patch b/ports/tinyexpr/fix-issue-34.patch
new file mode 100644
index 000000000..000fea053
--- /dev/null
+++ b/ports/tinyexpr/fix-issue-34.patch
@@ -0,0 +1,16 @@
+diff --git a/tinyexpr.c b/tinyexpr.c
+index 90ed8fc..570f2fd 100755
+--- a/tinyexpr.c
++++ b/tinyexpr.c
+@@ -49,6 +49,11 @@ For log = natural log uncomment the next line. */
+ #define INFINITY (1.0/0.0)
+ #endif
+
++/* https://github.com/codeplea/tinyexpr/issues/34 */
++#ifdef _MSC_VER
++#pragma function(ceil)
++#pragma function(floor)
++#endif
+
+ typedef double (*te_fun2)(double, double);
+