From 62934002c1cf11f05762d6cdb868af1924b8bc62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 8 Apr 2016 15:57:50 +0200 Subject: [PATCH] liblangtag: move typedef for lt_tag_filter_t Our gcc does not like a typedef for an yet undefined enum, thus move the typedef enum _lt_tag_filter_t lt_tag_filter_t; after the definition of the enum itself. --- .../patches/fix-typedef_lt_tag_filter_t.patch | 20 +++++++++++++++++++ srcpkgs/liblangtag/template | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch diff --git a/srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch b/srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch new file mode 100644 index 00000000000..41abafdde8b --- /dev/null +++ b/srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch @@ -0,0 +1,20 @@ +--- liblangtag/lt-tag.h 2016-03-23 03:58:27.000000000 +0100 ++++ liblangtag/lt-tag.h 2016-04-08 15:50:43.747557016 +0200 +@@ -53,8 +53,6 @@ + * This is used as a binary count sequence with lt_tag_get_string_with_filter() + * to allow only given tags to be the outcome. + */ +-typedef enum _lt_tag_filter_t lt_tag_filter_t; +- + enum _lt_tag_filter_t { + LT_TAG_FILTER_NONE = 0, + LT_TAG_FILTER_LANGUAGE = 1 << 0, +@@ -68,6 +66,8 @@ + LT_TAG_FILTER_ALL = -1 + }; + ++typedef enum _lt_tag_filter_t lt_tag_filter_t; ++ + lt_tag_t *lt_tag_new (void); + lt_tag_t *lt_tag_ref (lt_tag_t *tag); + void lt_tag_unref (lt_tag_t *tag); diff --git a/srcpkgs/liblangtag/template b/srcpkgs/liblangtag/template index 733be46181b..a3def4d3f29 100644 --- a/srcpkgs/liblangtag/template +++ b/srcpkgs/liblangtag/template @@ -1,7 +1,7 @@ # Template file for 'liblangtag' pkgname=liblangtag version=0.6.0 -revision=1 +revision=2 build_style=gnu-configure short_desc="Interface library to access tags for identifying languages" maintainer="Enno Boland "