OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

271 lines
5.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../docpp/docpp-3.4.10-gcc43.patch
  5. # Copyright (C) 2011 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Description: Fix to build with GCC >= 4.3
  17. Origin: Gentoo
  18. http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-doc/doc%2B%2B/files/doc%2B%2B-3.4.10-gcc43.patch?revision=1.1
  19. Bug reference: http://bugs.gentoo.org/show_bug.cgi?id=227067
  20. --- doc++-3.4.10.orig/src/main.cc
  21. +++ doc++-3.4.10/src/main.cc
  22. @@ -25,7 +25,7 @@
  23. #include "config.h"
  24. #include <assert.h>
  25. -#include <fstream.h>
  26. +#include <fstream>
  27. #include <getopt.h>
  28. #include <locale.h>
  29. #include <stdio.h>
  30. @@ -38,6 +38,8 @@
  31. #define GIF_FILE_NAME "gifs.db"
  32. +using namespace std;
  33. +
  34. FILE *out;
  35. char language;
  36. Entry *root;
  37. only in patch2:
  38. unchanged:
  39. --- doc++-3.4.10.orig/src/nametable.h
  40. +++ doc++-3.4.10/src/nametable.h
  41. @@ -25,7 +25,9 @@
  42. #define _NAME_TABLE_H
  43. #include <assert.h>
  44. -#include <iostream.h>
  45. +#include <iostream>
  46. +
  47. +using namespace std;
  48. #include "datahashtable.h"
  49. only in patch2:
  50. unchanged:
  51. --- doc++-3.4.10.orig/src/doc2tex.ll
  52. +++ doc++-3.4.10/src/doc2tex.ll
  53. @@ -23,13 +23,15 @@
  54. %{
  55. #include <assert.h>
  56. -#include <fstream.h>
  57. -#include <iostream.h>
  58. +#include <fstream>
  59. +#include <iostream>
  60. #include <stdio.h>
  61. #include <stdlib.h>
  62. #include <string.h>
  63. #include <time.h>
  64. +using namespace std;
  65. +
  66. #include "classgraph.h"
  67. #include "doc.h"
  68. only in patch2:
  69. unchanged:
  70. --- doc++-3.4.10.orig/src/java.ll
  71. +++ doc++-3.4.10/src/java.ll
  72. @@ -26,7 +26,7 @@
  73. #include <assert.h>
  74. #include <ctype.h>
  75. -#include <iostream.h>
  76. +#include <iostream>
  77. #include <stdio.h>
  78. #include "doc.h"
  79. only in patch2:
  80. unchanged:
  81. --- doc++-3.4.10.orig/src/html.cc
  82. +++ doc++-3.4.10/src/html.cc
  83. @@ -31,7 +31,7 @@
  84. #include <direct.h>
  85. #endif
  86. #include <errno.h>
  87. -#include <iostream.h>
  88. +#include <iostream>
  89. #include <stdio.h>
  90. #include <stdlib.h>
  91. #include <string.h>
  92. only in patch2:
  93. unchanged:
  94. --- doc++-3.4.10.orig/src/comment.ll
  95. +++ doc++-3.4.10/src/comment.ll
  96. @@ -24,7 +24,7 @@
  97. #include <assert.h>
  98. #include <ctype.h>
  99. -#include <iostream.h>
  100. +#include <iostream>
  101. #include <stdarg.h>
  102. #include <stdio.h>
  103. only in patch2:
  104. unchanged:
  105. --- doc++-3.4.10.orig/src/tex2gif.cc
  106. +++ doc++-3.4.10/src/tex2gif.cc
  107. @@ -21,8 +21,8 @@
  108. Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  109. */
  110. -#include <iostream.h>
  111. -#include <fstream.h>
  112. +#include <iostream>
  113. +#include <fstream>
  114. #include <stdio.h>
  115. #include <string.h>
  116. @@ -38,6 +38,8 @@
  117. #include "nametable.h"
  118. #include "tex2gif.h"
  119. +using namespace std;
  120. +
  121. void _system(const char *b)
  122. {
  123. #ifdef DEBUG
  124. only in patch2:
  125. unchanged:
  126. --- doc++-3.4.10.orig/src/cpp.ll
  127. +++ doc++-3.4.10/src/cpp.ll
  128. @@ -26,7 +26,7 @@
  129. #include <assert.h>
  130. #include <ctype.h>
  131. -#include <iostream.h>
  132. +#include <iostream>
  133. #include <stdarg.h>
  134. #include <stdio.h>
  135. only in patch2:
  136. unchanged:
  137. --- doc++-3.4.10.orig/src/doc.ll
  138. +++ doc++-3.4.10/src/doc.ll
  139. @@ -23,8 +23,8 @@
  140. %{
  141. #include <assert.h>
  142. -#include <fstream.h>
  143. -#include <iostream.h>
  144. +#include <fstream>
  145. +#include <iostream>
  146. #include <stdio.h>
  147. #include <stdlib.h>
  148. #include <string.h>
  149. only in patch2:
  150. unchanged:
  151. --- doc++-3.4.10.orig/src/nametable.cc
  152. +++ doc++-3.4.10/src/nametable.cc
  153. @@ -22,7 +22,7 @@
  154. */
  155. #include <assert.h>
  156. -#include <iostream.h>
  157. +#include <iostream>
  158. #include <stdlib.h>
  159. #include <string.h>
  160. only in patch2:
  161. unchanged:
  162. --- doc++-3.4.10.orig/src/datahashtable.h
  163. +++ doc++-3.4.10/src/datahashtable.h
  164. @@ -26,9 +26,11 @@
  165. #define _DATAHASHTABLE_H
  166. #include <assert.h>
  167. -#include <iostream.h>
  168. +#include <iostream>
  169. #include <stdlib.h>
  170. +using namespace std;
  171. +
  172. #include "McDArray.h"
  173. /* This should be a private subclass of #DataHashTable#. However, since cfront
  174. only in patch2:
  175. unchanged:
  176. --- doc++-3.4.10.orig/src/equate.cc
  177. +++ doc++-3.4.10/src/equate.cc
  178. @@ -23,9 +23,9 @@
  179. #include "config.h"
  180. -#include <fstream.h>
  181. +#include <fstream>
  182. #include <getopt.h>
  183. -#include <iostream.h>
  184. +#include <iostream>
  185. #include <stdio.h>
  186. #include <string.h>
  187. only in patch2:
  188. unchanged:
  189. --- doc++-3.4.10.orig/src/doc2dbsgml.ll
  190. +++ doc++-3.4.10/src/doc2dbsgml.ll
  191. @@ -22,12 +22,14 @@
  192. %{
  193. #include <assert.h>
  194. -#include <fstream.h>
  195. -#include <iostream.h>
  196. +#include <fstream>
  197. +#include <iostream>
  198. #include <stdio.h>
  199. #include <stdlib.h>
  200. #include <string.h>
  201. +using namespace std;
  202. +
  203. #include "classgraph.h"
  204. #include "doc.h"
  205. only in patch2:
  206. unchanged:
  207. --- doc++-3.4.10.orig/src/doc2dbxml.ll
  208. +++ doc++-3.4.10/src/doc2dbxml.ll
  209. @@ -25,12 +25,14 @@
  210. %{
  211. #include <assert.h>
  212. -#include <fstream.h>
  213. -#include <iostream.h>
  214. +#include <fstream>
  215. +#include <iostream>
  216. #include <stdio.h>
  217. #include <stdlib.h>
  218. #include <string.h>
  219. +using namespace std;
  220. +
  221. #include "classgraph.h"
  222. #include "doc.h"
  223. only in patch2:
  224. unchanged:
  225. --- doc++-3.4.10.orig/src/php.ll
  226. +++ doc++-3.4.10/src/php.ll
  227. @@ -23,7 +23,7 @@
  228. %{
  229. #include <assert.h>
  230. #include <ctype.h>
  231. -#include <iostream.h>
  232. +#include <iostream>
  233. #include <stdio.h>
  234. #include "doc.h"