diff --git a/src/apps/icon-o-matic/style/SetColorCommand.cpp b/src/apps/icon-o-matic/style/SetColorCommand.cpp index 706ba57862..a9be92a79a 100644 --- a/src/apps/icon-o-matic/style/SetColorCommand.cpp +++ b/src/apps/icon-o-matic/style/SetColorCommand.cpp @@ -34,8 +34,12 @@ SetColorCommand::~SetColorCommand() status_t SetColorCommand::InitCheck() { +#ifdef HAIKU_TARGET_PLATFORM_BEOS return fStyle && *(uint32*)&fStyle->Color() != *(uint32*)&fColor ? B_OK : B_NO_INIT; +#else + return fStyle && fStyle->Color() != fColor ? B_OK : B_NO_INIT; +#endif } // Perform