Adding const for gcc2 as well shouldn't cause any issues. Thanks Axel!
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29123 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -41,26 +41,17 @@ struct _oproperty_info_;
|
|||||||
|
|
||||||
struct compound_type {
|
struct compound_type {
|
||||||
struct field_pair {
|
struct field_pair {
|
||||||
#if __GNUC__ > 2
|
const char *name; // name of entry in message
|
||||||
const
|
|
||||||
#endif
|
|
||||||
char *name; // name of entry in message
|
|
||||||
type_code type; // type_code of entry in message
|
type_code type; // type_code of entry in message
|
||||||
};
|
};
|
||||||
field_pair pairs[5];
|
field_pair pairs[5];
|
||||||
};
|
};
|
||||||
|
|
||||||
struct property_info {
|
struct property_info {
|
||||||
#if __GNUC__ > 2
|
const char *name;
|
||||||
const
|
|
||||||
#endif
|
|
||||||
char *name;
|
|
||||||
uint32 commands[10];
|
uint32 commands[10];
|
||||||
uint32 specifiers[10];
|
uint32 specifiers[10];
|
||||||
#if __GNUC__ > 2
|
const char *usage;
|
||||||
const
|
|
||||||
#endif
|
|
||||||
char *usage;
|
|
||||||
uint32 extra_data;
|
uint32 extra_data;
|
||||||
uint32 types[10];
|
uint32 types[10];
|
||||||
compound_type ctypes[3];
|
compound_type ctypes[3];
|
||||||
@@ -73,16 +64,10 @@ enum value_kind {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct value_info {
|
struct value_info {
|
||||||
#if __GNUC__ > 2
|
const char *name;
|
||||||
const
|
|
||||||
#endif
|
|
||||||
char *name;
|
|
||||||
uint32 value;
|
uint32 value;
|
||||||
value_kind kind;
|
value_kind kind;
|
||||||
#if __GNUC__ > 2
|
const char *usage;
|
||||||
const
|
|
||||||
#endif
|
|
||||||
char *usage;
|
|
||||||
uint32 extra_data;
|
uint32 extra_data;
|
||||||
uint32 _reserved[10];
|
uint32 _reserved[10];
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user