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

37 lines
945 B
Diff
Raw Normal View History

2019-02-08 01:34:06 +00:00
From 058bf8ae8686bd441188a62e950227e50214056b 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
---
internal.h | 10 ----------
1 file changed, 10 deletions(-)
2014-03-01 19:01:35 +00:00
diff --git a/internal.h b/internal.h
2019-02-08 01:34:06 +00:00
index 28a2f74..8c16c5a 100644
2014-03-01 19:01:35 +00:00
--- a/internal.h
+++ b/internal.h
2019-01-11 19:43:42 +00:00
@@ -941,19 +941,9 @@ 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
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
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
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
--
2.20.1