--- a/src/hugin1/hugin/huginApp.cpp
+++ b/src/hugin1/hugin/huginApp.cpp
@@ -576,7 +576,7 @@
     int dx,dy;
     wxDisplaySize(&dx,&dy);
 
-#if ( __WXGTK__ ) &&  wxCHECK_VERSION(2,6,0)
+#if ( __WXGTK__ )
 // restoring the splitter positions properly when maximising doesn't work.
 // Disabling maximise on wxWidgets >= 2.6.0 and gtk
         //size
@@ -627,7 +627,7 @@
 
     wxConfigBase * config = wxConfigBase::Get();
 
-#if ( __WXGTK__ ) &&  wxCHECK_VERSION(2,6,0)
+#if ( __WXGTK__ )
 // restoring the splitter positions properly when maximising doesn't work.
 // Disabling maximise on wxWidgets >= 2.6.0 and gtk