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

25 lines
661 B
Diff
Raw Normal View History

2014-03-01 19:01:35 +00:00
diff --git a/internal.h b/internal.h
2019-01-11 19:43:42 +00:00
index 433ab6635d..a4f7e9bde3 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;