]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/win32/patches/wxWidgets.patch
Restore win32 dir from Branch-5.2 and update it
[bacula/bacula] / bacula / src / win32 / patches / wxWidgets.patch
1 diff -ur wxWidgets-2.8.7-rel/build/msw/config.gcc wxWidgets-2.8.7/build/msw/config.gcc
2 --- build/msw/config.mingw32    2007-11-21 13:42:45.000000000 +0100
3 +++ build/msw/config.mingw32    2008-03-11 15:45:30.000000000 +0100
4 @@ -11,10 +11,10 @@
5  # -------------------------------------------------------------------------
6  
7  # C compiler 
8 -CC := gcc
9 +CC := mingw32-gcc
10  
11  # C++ compiler 
12 -CXX := g++
13 +CXX := mingw32-g++
14  
15  # Standard flags for CC 
16  CFLAGS := 
17 @@ -23,10 +23,10 @@
18  CXXFLAGS := 
19  
20  # Standard preprocessor flags (common for CC and CXX) 
21 -CPPFLAGS := 
22 +CPPFLAGS := -I../../../zlib
23  
24  # Standard linker flags 
25 -LDFLAGS := 
26 +LDFLAGS := -L../../../zlib
27  
28  # The C preprocessor 
29  CPP := $(CC) -E
30 @@ -44,7 +44,7 @@
31  MSLU := 0
32  
33  # Type of compiled binaries [debug,release]
34 -BUILD := debug
35 +BUILD := release
36  
37  # Should debugging info be included in the executables? The default value
38  # "default" means that debug info will be included if BUILD=debug
39 @@ -131,4 +131,3 @@
40  #     "3" ...... this is for Mingw 2.0 or newer (comes with gcc3)
41  #     "2.95" ... for Mingw 1.1 or any of the older versions [3,2.95]
42  GCC_VERSION := 3
43 -
44 diff -ur wxWidgets-2.8.7-rel/include/wx/string.h wxWidgets-2.8.7/include/wx/string.h
45 --- include/wx/string.h 2007-11-21 13:41:54.000000000 +0100
46 +++ include/wx/string.h 2008-03-11 15:50:58.000000000 +0100
47 @@ -235,7 +235,7 @@
48  #endif
49    // VC++ free must take place in same DLL as allocation when using non dll
50    // run-time library (e.g. Multithreaded instead of Multithreaded DLL)
51 -#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
52 +#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
53    void  Unlock() { if ( !IsEmpty() && --nRefs == 0) Free();  }
54    // we must not inline deallocation since allocation is not inlined
55    void  Free();
56 diff -ur wxWidgets-2.8.7-rel/src/common/string.cpp wxWidgets-2.8.7/src/common/string.cpp
57 --- src/common/string.cpp       2007-11-21 13:41:57.000000000 +0100
58 +++ src/common/string.cpp       2008-03-11 15:53:17.000000000 +0100
59 @@ -140,7 +140,7 @@
60  // wxStringData class deallocation
61  // ===========================================================================
62  
63 -#if defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
64 +#if 1 || defined(__VISUALC__) && defined(_MT) && !defined(_DLL)
65  #  pragma message (__FILE__ ": building with Multithreaded non DLL runtime has a performance impact on wxString!")
66  void wxStringData::Free()
67  {