]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/panel.cxx
Cosmetic changes.
[flightgear.git] / src / Cockpit / panel.cxx
index a8413cc9b075e719aaa0c635e17db0975b539e7e..3ddc6b453437244d703d9b5df1a6bab27df507e0 100644 (file)
 #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
 
 
@@ -253,8 +256,9 @@ void
 FGPanel::update ()
 {
                                // Do nothing if the panel isn't visible.
-    if (!fgPanelVisible())
+    if ( !fgPanelVisible() ) {
         return;
+    }
 
                                // If the mouse is down, do something
     if (_mouseDown) {