[MPlayer-dev-eng] c++ version of mplayer.c

Michael Niedermayer michaelni at gmx.at
Tue Feb 15 16:44:24 CET 2005


Hi

On Tuesday 15 February 2005 14:11, Jindrich Makovicka wrote:
> Michael Niedermayer wrote:
> > gcc-3.? supports single inheritance in plain c files AFAIK and theres
> > also a patch for 2.95 IIRC
>
> Can you post some example for gcc 3.3/3.4 ? I only googled submorph-c &
> substruct-c patches.

typedef struct Parent{
    int alpha;
} Parent;

typedef struct Child{
    Parent;
    int beta;
}Child;

should work as long as u use -fms-extensions

-- 
Michael

"nothing is evil in the beginning. Even Sauron was not so." -- Elrond




More information about the MPlayer-dev-eng mailing list