PKGBUILDs/extra/ruby/0001-Use-only-unsigned-long-for-rb_serial_t.patch

40 lines
1.1 KiB
Diff
Raw Normal View History

2020-01-07 18:59:34 +00:00
From bc148b24448c68bc2720a10db4424d8a6d5772b3 Mon Sep 17 00:00:00 2001
2019-01-15 04:37:20 +00:00
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Mon, 14 Jan 2019 21:34:02 -0700
2019-02-08 01:34:06 +00:00
Subject: [PATCH] Use only unsigned long for rb_serial_t
2019-01-15 04:37:20 +00:00
---
2020-01-07 18:59:34 +00:00
internal.h | 12 ------------
1 file changed, 12 deletions(-)
2019-01-15 04:37:20 +00:00
2014-03-01 19:01:35 +00:00
diff --git a/internal.h b/internal.h
2020-01-07 18:59:34 +00:00
index baefb36c02..f57dc911ef 100644
2014-03-01 19:01:35 +00:00
--- a/internal.h
+++ b/internal.h
2020-01-07 18:59:34 +00:00
@@ -1000,22 +1000,10 @@ struct rb_subclass_entry {
2014-03-01 19:01:35 +00:00
rb_subclass_entry_t *next;
};
-#if defined(HAVE_LONG_LONG)
-typedef unsigned LONG_LONG rb_serial_t;
-#define SERIALT2NUM ULL2NUM
2019-01-11 19:43:42 +00:00
-#define PRI_SERIALT_PREFIX PRI_LL_PREFIX
2020-01-07 18:59:34 +00:00
-#define SIZEOF_SERIAL_T SIZEOF_LONG_LONG
2014-03-01 19:01:35 +00:00
-#elif defined(HAVE_UINT64_T)
-typedef uint64_t rb_serial_t;
-#define SERIALT2NUM SIZET2NUM
2019-01-11 19:43:42 +00:00
-#define PRI_SERIALT_PREFIX PRI_64_PREFIX
2020-01-07 18:59:34 +00:00
-#define SIZEOF_SERIAL_T SIZEOF_UINT64_T
2014-03-01 19:01:35 +00:00
-#else
typedef unsigned long rb_serial_t;
#define SERIALT2NUM ULONG2NUM
2019-01-11 19:43:42 +00:00
#define PRI_SERIALT_PREFIX PRI_LONG_PREFIX
2020-01-07 18:59:34 +00:00
#define SIZEOF_SERIAL_T SIZEOF_LONG
2014-03-01 19:01:35 +00:00
-#endif
struct rb_classext_struct {
struct st_table *iv_index_tbl;
2019-01-15 04:37:20 +00:00
--
2020-01-07 18:59:34 +00:00
2.24.1
2019-01-15 04:37:20 +00:00