File: fix-gcc-4.6-ftbfs.patch

package info (click to toggle)
htmlcxx 0.86-1.3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,288 kB
  • sloc: cpp: 4,354; sh: 4,324; ansic: 1,655; yacc: 523; lex: 159; xml: 102; makefile: 53; perl: 27
file content (17 lines) | stat: -rw-r--r-- 719 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Author: Ludovico Cavedon <cavedon@debian.org>
Description: Fix compilation with GCC 4.6
Forwarded: yes

Index: htmlcxx/html/tree.h
===================================================================
--- htmlcxx.orig/html/tree.h
+++ htmlcxx/html/tree.h
@@ -116,7 +116,7 @@ class tree {
             typedef T*                              pointer;
             typedef T&                              reference;
             typedef size_t                          size_type;
-            typedef ptrdiff_t                       difference_type;
+            typedef std::ptrdiff_t                  difference_type;
             typedef std::bidirectional_iterator_tag iterator_category;
 
             iterator_base();