mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
Ports: Update ruby's patches to use git patches
This commit is contained in:
parent
8e95236efb
commit
57bbe11933
9 changed files with 188 additions and 118 deletions
|
@ -0,0 +1,40 @@
|
|||
From 4c770bb497775cfe017df53b002c6dbfda02c5f2 Mon Sep 17 00:00:00 2001
|
||||
From: Eric Seifert <seiferteric@gmail.com>
|
||||
Date: Tue, 21 Sep 2021 23:09:21 -0700
|
||||
Subject: [PATCH 3/4] Remove the inline definitions of labs and llabs
|
||||
|
||||
---
|
||||
ext/bigdecimal/bigdecimal.h | 17 -----------------
|
||||
1 file changed, 17 deletions(-)
|
||||
|
||||
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h
|
||||
index 28f3363..a2c8c7e 100644
|
||||
--- a/ext/bigdecimal/bigdecimal.h
|
||||
+++ b/ext/bigdecimal/bigdecimal.h
|
||||
@@ -74,23 +74,6 @@ extern "C" {
|
||||
#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
|
||||
--
|
||||
2.36.1
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue