File: 03_headers_order.patch

package info (click to toggle)
glob2 0.9.4.4-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 34,856 kB
  • sloc: cpp: 89,685; python: 868; ansic: 259; sh: 49; makefile: 19
file content (24 lines) | stat: -rw-r--r-- 864 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Author: Ilya Barygin <barygin@gmail.com>
Description:
 With gcc 4.4, compilation of libgag/src/TextStream.cpp fails with the error: 
 'class GAGCore::StreamBackend' has no member named 'getc'. Reordering 
 #include's solves the problem.
Bug-Debian: https://bugs.debian.org/553706

Index: glob2-0.9.4.1/libgag/src/TextStream.cpp
===================================================================
--- glob2-0.9.4.1.orig/libgag/src/TextStream.cpp	2009-06-27 20:19:38.000000000 +0400
+++ glob2-0.9.4.1/libgag/src/TextStream.cpp	2009-06-27 20:20:22.000000000 +0400
@@ -17,11 +17,11 @@
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 */
 
-#include <TextStream.h>
 #include <assert.h>
 #include <fstream>
 #include <iostream>
 #include <stack>
+#include <TextStream.h>
 #ifdef WIN32
 #define snprintf _snprintf
 #define vsnprintf _vsnprintf