From 1421cc1eaf0d6f6c8a5fc1aebdf41369887fc92c Mon Sep 17 00:00:00 2001 From: Dirk Meyer Date: Wed, 1 Jan 2020 20:53:40 +0000 Subject: - update to 3.1 --- devel/gperf/files/patch-offsetof | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 devel/gperf/files/patch-offsetof (limited to 'devel/gperf/files/patch-offsetof') diff --git a/devel/gperf/files/patch-offsetof b/devel/gperf/files/patch-offsetof deleted file mode 100644 index 8afe9293ba42..000000000000 --- a/devel/gperf/files/patch-offsetof +++ /dev/null @@ -1,26 +0,0 @@ ---- src/output.cc 2007-03-31 15:16:05 UTC -+++ src/output.cc -@@ -1106,9 +1106,7 @@ output_keyword_entry (KeywordExt *temp, - if (option[TYPE]) - printf ("{"); - if (option[SHAREDLIB]) -- printf ("(int)(long)&((struct %s_t *)0)->%s_str%d", -- option.get_stringpool_name (), option.get_stringpool_name (), -- stringpool_index); -+ printf("offsetof(struct %s_t, %s_str%d)", option.get_stringpool_name (), option.get_stringpool_name (), stringpool_index); - else - output_string (temp->_allchars, temp->_allchars_length); - if (option[TYPE]) -@@ -2035,8 +2033,11 @@ Output::output () - printf ("%s\n", _struct_decl); - } - -- if (option[INCLUDE]) -+ if (option[INCLUDE]) { - printf ("#include \n"); /* Declare strlen(), strcmp(), strncmp(). */ -+ if (option[SHAREDLIB]) -+ printf("#include \n"); /* Declare offsetof() */ -+ } - - if (!option[ENUM]) - { -- cgit v1.2.3