mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-31 18:02:57 +02:00
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.
This commit is contained in:
parent
eff8ba1999
commit
62934002c1
2 changed files with 21 additions and 1 deletions
20
srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch
Normal file
20
srcpkgs/liblangtag/patches/fix-typedef_lt_tag_filter_t.patch
Normal file
|
@ -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);
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'liblangtag'
|
# Template file for 'liblangtag'
|
||||||
pkgname=liblangtag
|
pkgname=liblangtag
|
||||||
version=0.6.0
|
version=0.6.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
short_desc="Interface library to access tags for identifying languages"
|
short_desc="Interface library to access tags for identifying languages"
|
||||||
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
maintainer="Enno Boland <gottox@voidlinux.eu>"
|
||||||
|
|
Loading…
Add table
Reference in a new issue