k3s: format with nixfmt-rfc-style
[NixPkgs.git] / pkgs / games / globulation / header-order.patch
blob6c8dd922c2553f32e7841d21a627e5842685f3ea
1 With gcc 4.4, compilation of libgag/src/TextStream.cpp fails with the error:
2 'class GAGCore::StreamBackend' has no member named 'getc'. Reordering
3 #include's solves the problem.
5 Patch from Debian.
7 Index: glob2-0.9.4.1/libgag/src/TextStream.cpp
8 ===================================================================
9 --- glob2-0.9.4.1.orig/libgag/src/TextStream.cpp 2009-06-27 20:19:38.000000000 +0400
10 +++ glob2-0.9.4.1/libgag/src/TextStream.cpp 2009-06-27 20:20:22.000000000 +0400
11 @@ -17,11 +17,11 @@
12 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
15 -#include <TextStream.h>
16 #include <assert.h>
17 #include <fstream>
18 #include <iostream>
19 #include <stack>
20 +#include <TextStream.h>
21 #ifdef WIN32
22 #define snprintf _snprintf
23 #define vsnprintf _vsnprintf