Patch #2559 2008-09-07 22:36

stahta01

Patch C::B for MinGW GCC 4.3x sdk.h include
Download
2559-Patch_C_B_for.patch (6.8 KB)
Category
Plugin::Refinement
Status
Closed
Close date
2008-10-06 19:38
Assigned to
 
Index: src/plugins/contrib/profiler/cbprofiler.cbp
===================================================================
--- src/plugins/contrib/profiler/cbprofiler.cbp    (revision 5202)
+++ src/plugins/contrib/profiler/cbprofiler.cbp    (working copy)
@@ -27,7 +27,6 @@
             <Add option="-Winvalid-pch" />
             <Add option="-mthreads" />
             <Add option="-fexceptions" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DCB_PRECOMP" />
             <Add option="-DWX_PRECOMP" />
Index: src/plugins/contrib/envvars/envvars.cbp
===================================================================
--- src/plugins/contrib/envvars/envvars.cbp    (revision 5202)
+++ src/plugins/contrib/envvars/envvars.cbp    (working copy)
@@ -43,7 +43,6 @@
             <Add option="-Winvalid-pch" />
             <Add option="-mthreads" />
             <Add option="-fexceptions" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DHAVE_W32API_H" />
             <Add option="-D__WXMSW__" />
Index: src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp
===================================================================
--- src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp    (revision 5202)
+++ src/plugins/contrib/wxSmithContribItems/wxSmithContribItems.cbp    (working copy)
@@ -29,7 +29,6 @@
             <Add option="-fmessage-length=0" />
             <Add option="-fexceptions" />
             <Add option="-Winvalid-pch" />
-            <Add option="-include sdk.h" />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DHAVE_W32API_H" />
             <Add option="-D__WXMSW__" />
Index: src/plugins/contrib/devpak_plugin/DevPakPlugin.cbp
===================================================================
--- src/plugins/contrib/devpak_plugin/DevPakPlugin.cbp    (revision 5202)
+++ src/plugins/contrib/devpak_plugin/DevPakPlugin.cbp    (working copy)
@@ -28,7 +28,6 @@
                     <Add option="-Winvalid-pch" />
                     <Add option="-mthreads" />
                     <Add option="-fexceptions" />
-                    <Add option='-include &quot;sdk.h&quot;' />
                     <Add option="-DBUILDING_PLUGIN" />
                     <Add option="-DCB_PRECOMP" />
                     <Add option="-DWX_PRECOMP" />
Index: src/plugins/contrib/source_exporter/Exporter.cbp
===================================================================
--- src/plugins/contrib/source_exporter/Exporter.cbp    (revision 5202)
+++ src/plugins/contrib/source_exporter/Exporter.cbp    (working copy)
@@ -45,7 +45,6 @@
             <Add option="-g" />
             <Add option="-Winvalid-pch" />
             <Add option="-mthreads" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-fexceptions" />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DCB_PRECOMP" />
Index: src/plugins/contrib/dragscroll/DragScroll.cbp
===================================================================
--- src/plugins/contrib/dragscroll/DragScroll.cbp    (revision 5202)
+++ src/plugins/contrib/dragscroll/DragScroll.cbp    (working copy)
@@ -29,7 +29,6 @@
             <Add option="-mthreads" />
             <Add option="-fmessage-length=0" />
             <Add option="-fexceptions" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DCB_PRECOMP" />
             <Add option="-DWX_PRECOMP" />
Index: src/plugins/contrib/symtab/symtab.cbp
===================================================================
--- src/plugins/contrib/symtab/symtab.cbp    (revision 5202)
+++ src/plugins/contrib/symtab/symtab.cbp    (working copy)
@@ -31,7 +31,6 @@
             <Add option="-Winvalid-pch" />
             <Add option="-mthreads" />
             <Add option="-fexceptions" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-DBUILDING_PLUGIN" />
             <Add option="-DCB_PRECOMP" />
             <Add option="-DWX_PRECOMP" />
Index: src/plugins/contrib/wxSmith/wxSmith.cbp
===================================================================
--- src/plugins/contrib/wxSmith/wxSmith.cbp    (revision 5202)
+++ src/plugins/contrib/wxSmith/wxSmith.cbp    (working copy)
@@ -53,7 +53,6 @@
             <Add option="-fmessage-length=0" />
             <Add option="-fexceptions" />
             <Add option="-Winvalid-pch" />
-            <Add option='-include &quot;sdk.h&quot;' />
             <Add option="-DHAVE_W32API_H" />
             <Add option="-D__WXMSW__" />
             <Add option="-DWXUSINGDLL" />
Index: src/plugins/contrib/help_plugin/help-plugin.cbp
===================================================================
--- src/plugins/contrib/help_plugin/help-plugin.cbp
download for full patch...
stahta01 2008-09-07 22:39

This patch is an work-around of an Bug in MinGW GCC 4.3 compiler. The patch removes the -include of sdk.h from compiler options.

stahta01 2008-09-07 23:53

I would hold off on applying this patch in hopes that the problem is fixed in MinGW GCC 4.3.

stahta01 2008-09-09 02:58

Please apply Patch #2560; before this one.

http://developer.berlios.de/patch/?func=detailpatch&patch_id=2560&group_id=5358

It fixes an issue on windows; that happens if sdk.h is not included.

Updated patch to remove -include sdk.h for all windows cbp files.

killerbot 2008-10-06 19:38

applied, thanks.