patches/ppl/0.11.2/500-ptrdiff_t.patch
author Bernhard Walle <bernhard@bwalle.de>
Sun May 11 13:00:36 2014 +0200 (2014-05-11)
changeset 3318 579bc9107f99
permissions -rw-r--r--
complibs/ppl: Fix build of ppl 0.11.2 with gcc 4.9

From: Roberto Bagnara <bagnara@cs.unipr.it>
Date: Tue, 29 Apr 2014 19:51:43 +0000 (+0200)
Subject: Added missing inclusions. Use std::ptrdiff_t.
X-Git-Url: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl%2Fppl.git;a=commitdiff;h=61d4e14dfd9f1121e9b4521dead5728b2424dd7c

Added missing inclusions. Use std::ptrdiff_t.
(Thanks to Paulo Cesar Pereira de Andrade.)

Signed-off-by: Bernhard Walle <bernhard@bwalle.de>
Message-Id: <5632a171e7c1dc4c0fb5.1399806148@euler.fritz.box>
Patchwork-Id: 347777
     1 From: Bernhard Walle <bernhard@bwalle.de>
     2 Subject: Fix compilation with gcc 4.9 (ptrdiff_t errors)
     3 
     4 This is a backport of following patch in ppl git
     5 
     6   commit 61d4e14dfd9f1121e9b4521dead5728b2424dd7c
     7   Author: Roberto Bagnara <bagnara@cs.unipr.it>
     8   Date:   Tue Apr 29 21:51:43 2014 +0200
     9 
    10       Added missing inclusions.  Use std::ptrdiff_t.
    11       (Thanks to Paulo Cesar Pereira de Andrade.)
    12 
    13 ---
    14  src/Congruence_System.defs.hh     |    3 ++-
    15  src/Constraint_System.defs.hh     |    3 ++-
    16  src/Generator_System.defs.hh      |    3 ++-
    17  src/Grid_Generator_System.defs.hh |    3 ++-
    18  4 files changed, 8 insertions(+), 4 deletions(-)
    19 
    20 --- a/src/Grid_Generator_System.defs.hh
    21 +++ b/src/Grid_Generator_System.defs.hh
    22 @@ -30,6 +30,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    23  #include "Variables_Set.types.hh"
    24  #include "Grid.types.hh"
    25  #include <iosfwd>
    26 +#include <cstddef>
    27  
    28  namespace Parma_Polyhedra_Library {
    29  
    30 @@ -267,7 +268,7 @@ public:
    31    class const_iterator
    32      : public std::iterator<std::forward_iterator_tag,
    33  			   Grid_Generator,
    34 -			   ptrdiff_t,
    35 +			   std::ptrdiff_t,
    36  			   const Grid_Generator*,
    37  			   const Grid_Generator&>,
    38        private Generator_System::const_iterator {
    39 --- a/src/Congruence_System.defs.hh
    40 +++ b/src/Congruence_System.defs.hh
    41 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    42  #include "Grid.types.hh"
    43  #include "Grid_Certificate.types.hh"
    44  #include <iosfwd>
    45 +#include <cstddef>
    46  
    47  namespace Parma_Polyhedra_Library {
    48  
    49 @@ -235,7 +236,7 @@ public:
    50    class const_iterator
    51      : public std::iterator<std::forward_iterator_tag,
    52  			   Congruence,
    53 -			   ptrdiff_t,
    54 +			   std::ptrdiff_t,
    55  			   const Congruence*,
    56  			   const Congruence&> {
    57    public:
    58 --- a/src/Constraint_System.defs.hh
    59 +++ b/src/Constraint_System.defs.hh
    60 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    61  #include "Congruence_System.types.hh"
    62  #include <iterator>
    63  #include <iosfwd>
    64 +#include <cstddef>
    65  
    66  namespace Parma_Polyhedra_Library {
    67  
    68 @@ -204,7 +205,7 @@ public:
    69    class const_iterator
    70      : public std::iterator<std::forward_iterator_tag,
    71  			   Constraint,
    72 -			   ptrdiff_t,
    73 +			   std::ptrdiff_t,
    74  			   const Constraint*,
    75  			   const Constraint&> {
    76    public:
    77 --- a/src/Generator_System.defs.hh
    78 +++ b/src/Generator_System.defs.hh
    79 @@ -33,6 +33,7 @@ site: http://www.cs.unipr.it/ppl/ . */
    80  #include "Polyhedron.types.hh"
    81  #include "Poly_Con_Relation.defs.hh"
    82  #include <iosfwd>
    83 +#include <cstddef>
    84  
    85  namespace Parma_Polyhedra_Library {
    86  
    87 @@ -250,7 +251,7 @@ public:
    88    class const_iterator
    89      : public std::iterator<std::forward_iterator_tag,
    90  			   Generator,
    91 -			   ptrdiff_t,
    92 +			   std::ptrdiff_t,
    93  			   const Generator*,
    94  			   const Generator&> {
    95    public: