treeviewx-0.5.1-gcc4.3.patch 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. diff -Naur tv-0.5.1/TreeLib/Parse.cpp tv-0.5.1.new/TreeLib/Parse.cpp
  2. --- tv-0.5.1/TreeLib/Parse.cpp 2002-02-23 07:22:32.000000000 -0500
  3. +++ tv-0.5.1.new/TreeLib/Parse.cpp 2008-06-17 06:08:24.000000000 -0400
  4. @@ -24,6 +24,11 @@
  5. #include <ctype.h>
  6. #include "Parse.h"
  7. +
  8. +
  9. +
  10. +#include <cstring>
  11. +
  12. // Return the next token in the string
  13. tokentype Parser::NextToken ()
  14. {
  15. diff -Naur tv-0.5.1/TreeLib/TreeLib.cpp tv-0.5.1.new/TreeLib/TreeLib.cpp
  16. --- tv-0.5.1/TreeLib/TreeLib.cpp 2004-05-13 08:22:11.000000000 -0400
  17. +++ tv-0.5.1.new/TreeLib/TreeLib.cpp 2008-06-17 05:58:17.000000000 -0400
  18. @@ -24,6 +24,8 @@
  19. #include "TreeLib.h"
  20. #include "Parse.h"
  21. +
  22. +#include <cstdlib>
  23. #include <vector>
  24. diff -Naur tv-0.5.1/TreeLib/treereader.cpp tv-0.5.1.new/TreeLib/treereader.cpp
  25. --- tv-0.5.1/TreeLib/treereader.cpp 2003-09-10 08:58:16.000000000 -0400
  26. +++ tv-0.5.1.new/TreeLib/treereader.cpp 2008-06-17 06:07:15.000000000 -0400
  27. @@ -28,6 +28,9 @@
  28. #include <stdlib.h>
  29. #endif
  30. +#include <cstring>
  31. +#include <cstdlib>
  32. +
  33. //------------------------------------------------------------------------------
  34. TreeReader::TreeReader (Tokeniser &p) : parser (p)
  35. {
  36. diff -Naur tv-0.5.1/ncl-2.0/src/charactersblock.cpp tv-0.5.1.new/ncl-2.0/src/charactersblock.cpp
  37. --- tv-0.5.1/ncl-2.0/src/charactersblock.cpp 2002-12-10 06:35:49.000000000 -0500
  38. +++ tv-0.5.1.new/ncl-2.0/src/charactersblock.cpp 2008-06-17 05:58:17.000000000 -0400
  39. @@ -1,3 +1,5 @@
  40. +
  41. +#include <cstring>
  42. #include "nexusdefs.h"
  43. #include "xnexus.h"
  44. #include "nexustoken.h"
  45. diff -Naur tv-0.5.1/ncl-2.0/src/nexus.cpp tv-0.5.1.new/ncl-2.0/src/nexus.cpp
  46. --- tv-0.5.1/ncl-2.0/src/nexus.cpp 2002-12-10 06:35:50.000000000 -0500
  47. +++ tv-0.5.1.new/ncl-2.0/src/nexus.cpp 2008-06-17 05:58:17.000000000 -0400
  48. @@ -1,3 +1,5 @@
  49. +
  50. +#include <cstring>
  51. #include "nexusdefs.h"
  52. #include "xnexus.h"
  53. #include "nexustoken.h"
  54. diff -Naur tv-0.5.1/ncl-2.0/src/nexustoken.cpp tv-0.5.1.new/ncl-2.0/src/nexustoken.cpp
  55. --- tv-0.5.1/ncl-2.0/src/nexustoken.cpp 2005-04-29 10:28:17.000000000 -0400
  56. +++ tv-0.5.1.new/ncl-2.0/src/nexustoken.cpp 2008-06-17 05:58:17.000000000 -0400
  57. @@ -1,3 +1,5 @@
  58. +
  59. +#include <cstring>
  60. #include "nexusdefs.h"
  61. #include "xnexus.h"
  62. #include "nexustoken.h"
  63. diff -Naur tv-0.5.1/ncl-2.0/src/nxsstring.cpp tv-0.5.1.new/ncl-2.0/src/nxsstring.cpp
  64. --- tv-0.5.1/ncl-2.0/src/nxsstring.cpp 2001-02-02 07:55:40.000000000 -0500
  65. +++ tv-0.5.1.new/ncl-2.0/src/nxsstring.cpp 2008-06-17 05:58:17.000000000 -0400
  66. @@ -1,3 +1,6 @@
  67. +
  68. +#include <cstring>
  69. +
  70. #ifdef __BORLANDC__
  71. // Undefine __MINMAX_DEFINED so that min and max are correctly defined
  72. #ifdef __MINMAX_DEFINED