]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/sockets/client.cpp
compilation fix for g++ 3 (and probably others) after the last commit
[wxWidgets.git] / samples / sockets / client.cpp
index 6acab6716f35bd16ace06c98ff63a2a60dd54104..1536ecef8adb32a3107774f53c5ffafcb900a34c 100644 (file)
 // headers
 // --------------------------------------------------------------------------
 
-#if defined(__GNUG__) && !defined(__APPLE__)
-    #pragma implementation
-    #pragma interface
-#endif
-
 // For compilers that support precompilation, includes "wx/wx.h".
 #include "wx/wxprec.h"
 
@@ -159,6 +154,9 @@ IMPLEMENT_APP(MyApp)
 
 bool MyApp::OnInit()
 {
+  if ( !wxApp::OnInit() )
+      return false;
+
   // Create the main application window
   MyFrame *frame = new MyFrame();