Added #ifdef/endif for mac desktop