status_t AddRGBColor(BMessage &message, const char *name, rgb_color a_color, type_code type) { #ifdef B_BEOS_VERSION_DANO return message.AddRGBColor(name, a_color, type); #else return message.AddData(name, type, &a_color, sizeof(a_color)); #endif }