]> git.sur5r.net Git - bacula/bacula/commitdiff
Fixes to make wx-console compatible with wxWidgets 2.6.0.
authorNicolas Boichat <nicolas@boichat.ch>
Sun, 24 Apr 2005 22:12:49 +0000 (22:12 +0000)
committerNicolas Boichat <nicolas@boichat.ch>
Sun, 24 Apr 2005 22:12:49 +0000 (22:12 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@1955 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/src/baconfig.h
bacula/src/wx-console/CHANGELOG
bacula/src/wx-console/console_thread.h
bacula/src/wx-console/main.cpp

index d6e675bc90baa14b774b031254aa6b3e7d20ec97..5cda012fd18bdf034733877d95dce0dc2edcc584 100644 (file)
@@ -442,8 +442,10 @@ int  m_msg(const char *file, int line, POOLMEM *&pool_buf, const char *fmt, ...)
 
 
 /* Use our strdup with smartalloc */
+#ifndef __WXGTK__
 #undef strdup
 #define strdup(buf) bad_call_on_strdup_use_bstrdup(buf)
+#endif
 
 /* Use our fgets which handles interrupts */
 #undef fgets
index 9ffc7b3f300d907ed2010ca98c1fc0d8044f6788..902dbbb2e516adbe470def812f5db5250e06da99 100644 (file)
@@ -1,3 +1,6 @@
+25-04-2005 :
+ - Fixes to make wx-console compatible with wxWidgets 2.6.0.
+
 24-03-2005 :
  - wxbMainFrame : Fix a bug with GTK+-1.2 which caused wx-console to crash
    when starting.
index eaee9ec92e66411a1e257f85120e239ef1ad7fa7..bf363f3c539291480e246f10e39dc5778c0f1a23 100644 (file)
@@ -29,6 +29,7 @@
 
 #include <wx/wxprec.h>
 
+#include <wx/string.h>
 #include <wx/thread.h> // inheriting class's header file
 #include "bacula.h"
 #include "jcr.h"
index a1ebab7800f36ac9df548b2562f2fdb4ac2896fc..07a8dcb3f6bddb6d97e174a9e0b8b6b60fe7967b 100644 (file)
 // headers
 // ----------------------------------------------------------------------------
 
-#include "wx/wxprec.h"
-
-#ifdef __BORLANDC__
-   #pragma hdrstop
-#endif
-
-// for all others, include the necessary headers (this file is usually all you
-// need because it includes almost all "standard" wxWindows headers)
-#ifndef WX_PRECOMP
-   #include "wx/wx.h"
-#endif
+#include <wx/wxprec.h>
 
 #include "wxbmainframe.h"