From 5ca7bf5f9625adfb254f4760515e0e3ada75985c Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sun, 1 Feb 2009 23:28:37 +0000 Subject: [PATCH] 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 --- headers/os/app/PropertyInfo.h | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) diff --git a/headers/os/app/PropertyInfo.h b/headers/os/app/PropertyInfo.h index 5990dde892..7b5e2de334 100644 --- a/headers/os/app/PropertyInfo.h +++ b/headers/os/app/PropertyInfo.h @@ -41,26 +41,17 @@ struct _oproperty_info_; struct compound_type { struct field_pair { -#if __GNUC__ > 2 - const -#endif - char *name; // name of entry in message + const char *name; // name of entry in message type_code type; // type_code of entry in message }; field_pair pairs[5]; }; struct property_info { -#if __GNUC__ > 2 - const -#endif - char *name; + const char *name; uint32 commands[10]; uint32 specifiers[10]; -#if __GNUC__ > 2 - const -#endif - char *usage; + const char *usage; uint32 extra_data; uint32 types[10]; compound_type ctypes[3]; @@ -73,16 +64,10 @@ enum value_kind { }; struct value_info { -#if __GNUC__ > 2 - const -#endif - char *name; + const char *name; uint32 value; value_kind kind; -#if __GNUC__ > 2 - const -#endif - char *usage; + const char *usage; uint32 extra_data; uint32 _reserved[10]; };