#define WIN_W 1024
#define WIN_H 768
-#ifdef NONE
-#pragma warn A sloppy coder has defined NONE as a macro!!!
-#undef NONE
+#if defined( NONE ) && defined( _MSC_VER )
+# pragma message( "A sloppy coder has defined NONE as a macro!!!" )
+# undef NONE
+#elif defined( NONE )
+# pragma warn A sloppy coder has defined NONE as a macro!!!
+# undef NONE
#endif
FGPanel::update ()
{
// Do nothing if the panel isn't visible.
- if (!fgPanelVisible())
+ if ( !fgPanelVisible() ) {
return;
+ }
// If the mouse is down, do something
if (_mouseDown) {