Patch #2537 2008-08-01 20:54

mslomp

PATCH: help_plugin: missing prototypes in defs.h
Download
2537-PATCH_help_plu.patch (628 bytes)
Category
 
Status
Closed
Close date
2008-08-17 13:49
Assigned to
 
the patch below adds <cstdlib> in defs.h to provide the missing prototypes to strto* functions (build fails under gcc 4.4 HEAD), and also removes the <string.h> include, which is already included in <string>.

Index: src/plugins/contrib/help_plugin/defs.h
===================================================================
--- src/plugins/contrib/help_plugin/defs.h    (revision 5177)
+++ src/plugins/contrib/help_plugin/defs.h    (working copy)
@@ -13,7 +13,7 @@
 #include <ctime>
 #include <cctype>
 #include <cstdio>
-#include <string.h>
+#include <cstdlib>
 
 #define kDebug(x) DummyOutput()
 #define kWarning(x) DummyOutput()
killerbot 2008-08-17 13:49

applied in a different form :

string.h removal not entirely correct, replace by <cstring> --> is still needed for example for strcpy, strlen ...