1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 09:58:11 +00:00

Ports: Add Ruby 3.0.2

This commit is contained in:
Eric Seifert 2021-09-21 23:09:21 -07:00 committed by Linus Groh
parent 32932f83be
commit 01a06dde0e
9 changed files with 286 additions and 0 deletions

View file

@ -0,0 +1,27 @@
--- ruby-3.0.2/ext/bigdecimal/bigdecimal.h 2021-09-15 10:18:47.365241873 -0700
+++ ruby-3.0.2/ext/bigdecimal/bigdecimal.h 2021-09-16 11:56:52.989171237 -0700
@@ -74,23 +74,6 @@
#endif
#endif
-#ifndef HAVE_LABS
-static inline long
-labs(long const x)
-{
- if (x < 0) return -x;
- return x;
-}
-#endif
-
-#ifndef HAVE_LLABS
-static inline LONG_LONG
-llabs(LONG_LONG const x)
-{
- if (x < 0) return -x;
- return x;
-}
-#endif
#ifndef HAVE_FINITE
static int