rafkill-1.2.3-gcc43.patch 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Index: rafkill-1.2.2/src/guns/gun_findgun.cpp
  2. ===================================================================
  3. --- rafkill-1.2.2.orig/src/guns/gun_findgun.cpp 2006-05-07 15:50:04.000000000 +0100
  4. +++ rafkill-1.2.2/src/guns/gun_findgun.cpp 2008-04-09 22:54:54.000000000 +0100
  5. @@ -5,6 +5,7 @@
  6. #include "weaponobj.h"
  7. #include "hulls/hull_weapon_machine.h"
  8. #include "spaceobj.h"
  9. +#include <cstdlib>
  10. #include <vector>
  11. #include <math.h>
  12. Index: rafkill-1.2.2/src/guns/gun_machine_circle.cpp
  13. ===================================================================
  14. --- rafkill-1.2.2.orig/src/guns/gun_machine_circle.cpp 2006-05-02 02:50:40.000000000 +0100
  15. +++ rafkill-1.2.2/src/guns/gun_machine_circle.cpp 2008-04-09 22:54:54.000000000 +0100
  16. @@ -3,6 +3,7 @@
  17. #include "weaponobj.h"
  18. #include "hulls/hull_weapon_machine.h"
  19. #include "trigtable.h"
  20. +#include <cstdlib>
  21. // #define d_circle_move (2.9*8)
  22. Index: rafkill-1.2.2/src/guns/gun_saber.cpp
  23. ===================================================================
  24. --- rafkill-1.2.2.orig/src/guns/gun_saber.cpp 2006-05-02 02:52:23.000000000 +0100
  25. +++ rafkill-1.2.2/src/guns/gun_saber.cpp 2008-04-09 22:54:54.000000000 +0100
  26. @@ -5,6 +5,7 @@
  27. #include "weapons/weapon_beam.h"
  28. #include "spaceobj.h"
  29. #include "ebox.h"
  30. +#include <cstdlib>
  31. #include <vector>
  32. using namespace std;
  33. Index: rafkill-1.2.2/src/menu.cpp
  34. ===================================================================
  35. --- rafkill-1.2.2.orig/src/menu.cpp 2008-04-09 22:53:35.000000000 +0100
  36. +++ rafkill-1.2.2/src/menu.cpp 2008-04-09 22:54:54.000000000 +0100
  37. @@ -1,4 +1,5 @@
  38. #include <stdio.h>
  39. +#include <cstdlib>
  40. #include "defs.h"
  41. #include "menu.h"
  42. #include "loadsave.h"
  43. Index: rafkill-1.2.2/src/weapons/weapon_follow.cpp
  44. ===================================================================
  45. --- rafkill-1.2.2.orig/src/weapons/weapon_follow.cpp 2006-03-25 23:29:05.000000000 +0000
  46. +++ rafkill-1.2.2/src/weapons/weapon_follow.cpp 2008-04-09 22:54:54.000000000 +0100
  47. @@ -3,6 +3,7 @@
  48. #include "weapon_follow.h"
  49. #include "hulls/hull_weapon_follow.h"
  50. #include "spaceobj.h"
  51. +#include <cstdlib>
  52. #include <vector>
  53. using namespace std;
  54. Index: rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp
  55. ===================================================================
  56. --- rafkill-1.2.2.orig/src/hulls/hull_weapon_beam.cpp 2006-05-02 03:12:50.000000000 +0100
  57. +++ rafkill-1.2.2/src/hulls/hull_weapon_beam.cpp 2008-04-09 22:54:54.000000000 +0100
  58. @@ -4,6 +4,7 @@
  59. #include "hull_weapon_beam.h"
  60. #include "trigtable.h"
  61. #include "ebox.h"
  62. +#include <cstdlib>
  63. #ifndef debug
  64. #include <iostream>
  65. Index: rafkill-1.2.2/src/drawer.cpp
  66. ===================================================================
  67. --- rafkill-1.2.2.orig/src/drawer.cpp 2008-04-09 22:55:06.000000000 +0100
  68. +++ rafkill-1.2.2/src/drawer.cpp 2008-04-09 22:55:55.000000000 +0100
  69. @@ -11,6 +11,7 @@
  70. #include "trigtable.h"
  71. #include "pck.h"
  72. #include <iostream>
  73. +#include <cstring>
  74. /* TODO:
  75. * Add weapon icons to HUD
  76. Index: rafkill-1.2.2/src/loadsave.cpp
  77. ===================================================================
  78. --- rafkill-1.2.2.orig/src/loadsave.cpp 2008-04-09 22:55:19.000000000 +0100
  79. +++ rafkill-1.2.2/src/loadsave.cpp 2008-04-09 22:55:55.000000000 +0100
  80. @@ -7,6 +7,7 @@
  81. #include "spaceobj.h"
  82. #include "strings.h"
  83. #include <string>
  84. +#include <cstring>
  85. #include <vector>
  86. #include "gunobj.h"
  87. #include "hull.h"
  88. Index: rafkill-1.2.2/src/system.cpp
  89. ===================================================================
  90. --- rafkill-1.2.2.orig/src/system.cpp 2008-04-09 22:55:29.000000000 +0100
  91. +++ rafkill-1.2.2/src/system.cpp 2008-04-09 22:55:55.000000000 +0100
  92. @@ -1,6 +1,7 @@
  93. #include "system.h"
  94. #include <strings.h>
  95. #include <string>
  96. +#include <cstring>
  97. #ifdef WINDOWS
  98. static const char * type(){