summaryrefslogtreecommitdiff
path: root/src/stylesheet.h
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2009-08-02 18:02:46 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2009-08-02 18:02:46 +0000
commit8e6013db174f6db3073de15b3d4388411256e39d (patch)
treec882fb4d31ec885db7e7ed3efedfb41da1ddddc6 /src/stylesheet.h
parent77179c022f59c1b393b4ad69ab81a3ba2f05fae5 (diff)
downloadlibcss-8e6013db174f6db3073de15b3d4388411256e39d.tar.gz
libcss-8e6013db174f6db3073de15b3d4388411256e39d.tar.bz2
Use unsigned int for bitfields. Apparently, using uint32_t confuses some compilers.
svn path=/trunk/libcss/; revision=8990
Diffstat (limited to 'src/stylesheet.h')
-rw-r--r--src/stylesheet.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/stylesheet.h b/src/stylesheet.h
index 80b58b0..1769bff 100644
--- a/src/stylesheet.h
+++ b/src/stylesheet.h
@@ -53,9 +53,9 @@ typedef struct css_selector_detail {
lwc_string *name; /**< Interned name */
lwc_string *value; /**< Interned value, or NULL */
- uint32_t type : 4, /**< Type of selector */
- comb : 2, /**< Type of combinator */
- next : 1; /**< Another selector detail
+ unsigned int type : 4, /**< Type of selector */
+ comb : 2, /**< Type of combinator */
+ next : 1; /**< Another selector detail
* follows */
} css_selector_detail;
@@ -95,10 +95,10 @@ struct css_rule {
css_rule *next; /**< next in list */
css_rule *prev; /**< previous in list */
- uint32_t type : 4, /**< css_rule_type */
- index : 16, /**< index in sheet */
- items : 8, /**< # items in rule */
- ptype : 1; /**< css_rule_parent_type */
+ unsigned int type : 4, /**< css_rule_type */
+ index : 16, /**< index in sheet */
+ items : 8, /**< # items in rule */
+ ptype : 1; /**< css_rule_parent_type */
};
typedef struct css_rule_selector {