Ticket #2327: avifile-0.7-0.7.45-gcc4.patch

File avifile-0.7-0.7.45-gcc4.patch, 1.5 KB (added by robert@…, 20 years ago)
  • avifile-0.7-0.7.45/include/avm_map.h

    From: http://cvs.mandriva.com/cgi-bin/viewvc.cgi/contrib-SPECS/avifile/avifile-0.7-0.7.45-gcc4.patch?revision=1.1
    
    old new  
    3333template <class Key, class Value, class Compare = less<Key>, class equal = equal<Key> > class avm_map
    3434{
    3535protected:
    36     template <class Key1, class Value1> struct pair
     36    template <class KeyP, class ValueP> struct pair
    3737    {
    38         Key1 key;
    39         Value1 value;
     38        KeyP key;
     39        ValueP value;
    4040        pair() : key(Key()), value(Value()) {}
    41         pair(Key1 k, Value1 v) : key(k), value(v) {}
    42         pair(const pair<Key1, Value1>& p) : key(p.key), value(p.value) {}
     41        pair(KeyP k, ValueP v) : key(k), value(v) {}
     42        pair(const pair<KeyP, ValueP>& p) : key(p.key), value(p.value) {}
    4343    };
    4444    typedef pair<Key, Value> _Tpair;
    4545
    4646    template <class Key1, class Value1> struct binary_tree_node
    4747    {
    48         avm_map::pair<Key1, Value1>* entry;
     48        _Tpair* entry;
    4949        binary_tree_node<Key1, Value1>* left;
    5050        Key1 minval;
    5151        binary_tree_node<Key1, Value1>* right;
  • avifile-0.7-0.7.45/plugins/libmp3lame_audioenc/mp3encoder.cpp

    old new  
    3030        short  nCodecDelay;
    3131    };
    3232public:
    33     MP3Encoder::MP3Encoder(const CodecInfo& info, const WAVEFORMATEX* format)
     33    MP3Encoder(const CodecInfo& info, const WAVEFORMATEX* format)
    3434        :IAudioEncoder(info)
    3535    {
    3636        in_fmt=*format;