[mythtv] PATCH: fix Mythweather compile with gcc 3.4.1+

Mark Spieth mark at dclabs.com.au
Wed Aug 18 23:36:00 EDT 2004


maybe you can put in a #define
#if GCC3
#define STATIC_CAST(x) static_cast<x>
#else
#define STATIC_CAST(x) (x)
#endif
best of both worlds.

----- Original Message ----- 
From: "Isaac Richards" <ijr at po.cwru.edu>
To: "Development of mythtv" <mythtv-dev at mythtv.org>
Sent: Thursday, August 19, 2004 1:10 PM
Subject: Re: [mythtv] PATCH: fix Mythweather compile with gcc 3.4.1+


> On Wednesday 18 August 2004 10:35 pm, Daniel Thor Kristjansson wrote:
> > On Wed, 18 Aug 2004, Isaac Richards wrote:
> > ]Applied - though I didn't use static_cast<> (it's not available on gcc
> > 2.95.x, ]and we're still _sort_ of supporting that)..
> >
> > We are? Is there a distribution still using a 2.95 compiler?
>
> Older distros, and if I ever want to port things and have a mini-frontend
on
> my zaurus.
>
> > I've been converting unsafe casts to C++ casts when possible. Should I
> > revert those?
>
> Please.
>
> Isaac
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev
>



More information about the mythtv-dev mailing list