Compilation issue

Hi Jules,

The trunk do not currently compile with xcode and gcc 4.0
code/…/modules/juce_gui_basics/filebrowser/…/widgets/…/menus/juce_PopupMenu.h:236: error: ‘juce::Component* juce::PopupMenu::Options::targetComponent’ is private
code/…/modules/juce_gui_basics/menus/juce_PopupMenu.cpp:241: error: within this context
code/…/modules/juce_gui_basics/filebrowser/…/widgets/…/menus/juce_PopupMenu.h:237: error: ‘int juce::PopupMenu::Options::standardHeight’ is private
code/…/modules/juce_gui_basics/menus/juce_PopupMenu.cpp:271: error: within this context
code/…/modules/juce_gui_basics/filebrowser/…/widgets/…/menus/juce_PopupMenu.h:235: error: ‘juce::Rectangle juce::PopupMenu::Options::targetArea’ is private

looks like it doesn’t like the friend class PopupMenu;
while actually the class use those option is PopupMenu::Window

Seems to be fine with gcc4.2, and I don’t have a copy of 4.0 to try any more. Can you tell me exactly what needs changing?

In PopupMenu, put the forward declaration of Window before Options

add
friend class PopupMenu::Window in Options below the friend class PopupMenu