diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-05 13:58:38 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-06-05 13:58:38 +0000 |
commit | 0fe150eb4bfe1192691f43f259b49b700c47b96d (patch) | |
tree | 08749a6767e0fc9aaad4cf79cd5d17c9d6d7acff /navit/attr.h | |
parent | 1415b906ae3766d2a1579929369abc5c42b99a35 (diff) | |
download | navit-svn-0fe150eb4bfe1192691f43f259b49b700c47b96d.tar.gz |
Fix:Core:Moved struct range outside of struct attr for better c++ compatibility
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5128 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/attr.h')
-rw-r--r-- | navit/attr.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/navit/attr.h b/navit/attr.h index e82b08f5..379fe57c 100644 --- a/navit/attr.h +++ b/navit/attr.h @@ -106,6 +106,10 @@ enum attr_position_valid { #define ATTR_DEF_ITEMS(x,...) (&(struct attr){attr_##x,{(char *)((enum item_type[]){__VA_ARGS__ , type_none})}}) #define ATTR_LIST(...) (struct attr *[]) { __VA_ARGS__, NULL} +struct range { + short min, max; +}; + struct attr { enum attr_type type; union { @@ -154,9 +158,7 @@ struct attr { struct bookmarks *bookmarks; struct config *config; struct osd *osd; - struct range { - short min, max; - } range; + struct range range; int *dash; enum item_type *item_types; enum attr_type *attr_types; |