From 6b15e6add37ea7244dd5fbda004d70d419539b31 Mon Sep 17 00:00:00 2001 From: too-tired Date: Wed, 26 May 2010 07:13:49 +0000 Subject: [PATCH] compilation fixes for gcc 4.5 git-svn-id: https://dvbcut.svn.sourceforge.net/svnroot/dvbcut/trunk@170 36490176-9c1c-0410-b649-dbf2af5787bf --- ChangeLog | 7 +++++++ src/main.cpp | 2 +- src/mpgfile.h | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index a1d5adb..bc8b088 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2010-05-26 Michael Riepe + + * src/main.cpp: + * src/mpgfile.h: + Replace `index::index' with `class index' to make + gcc 4.5 happy. + 2010-03-06 Michael Riepe * DISTFILES: diff --git a/src/main.cpp b/src/main.cpp index 5ba1e5f..7b5528f 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -171,7 +171,7 @@ main(int argc, char *argv[]) { return 1; } - index::index idx(*mpg); + class index idx(*mpg); int pics = idx.generate(); if (pics <= 0) { fprintf(stderr, "%s: %s: %s\n", argv0, mpgfilename.c_str(), diff --git a/src/mpgfile.h b/src/mpgfile.h index 10a9316..2183276 100644 --- a/src/mpgfile.h +++ b/src/mpgfile.h @@ -49,7 +49,7 @@ class mpgfile stream s[MAXAVSTREAMS]; int videostreams, audiostreams; int initialoffset; - index::index idx; + class index idx; int pictures; mpgfile(inbuffer &b, int initial_offset);