summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2005-07-30 16:39:08 +0000
committerBruno Haible <bruno@clisp.org>2005-07-30 16:39:08 +0000
commitd6cec72c36b9bd5f2b711b083e20689e66a4a62b (patch)
tree9f02ed33fca9c5b9156317c96a415adb529d2dae
parentdbe7691075d28ee369ae2ab315b08f253e6dbf3c (diff)
downloadgperf-d6cec72c36b9bd5f2b711b083e20689e66a4a62b.tar.gz
Fix compilation with g++ 4.0.
-rw-r--r--ChangeLog5
-rw-r--r--src/positions.h6
2 files changed, 10 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index e2d2298..32ece48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-30 Bruno Haible <bruno@clisp.org>
+
+ * src/positions.h: Add forward declarations of friend classes.
+ Needed for compilation with g++ 4.0.
+
2004-08-22 Bruno Haible <bruno@clisp.org>
* tests/Makefile.in (check-lang-syntax): Add test for the
diff --git a/src/positions.h b/src/positions.h
index a1a2058..596844f 100644
--- a/src/positions.h
+++ b/src/positions.h
@@ -2,7 +2,7 @@
/* A set of byte positions.
- Copyright (C) 1989-1998, 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1989-1998, 2000, 2002, 2005 Free Software Foundation, Inc.
Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
and Bruno Haible <bruno@clisp.org>.
@@ -26,6 +26,10 @@
#ifndef positions_h
#define positions_h 1
+/* Classes defined below. */
+class PositionIterator;
+class PositionReverseIterator;
+
/* This class denotes a set of byte positions, used to access a keyword. */
class Positions