diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-08-30 12:05:47 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-08-30 12:05:47 +0000 |
| commit | 1e830c12e59df00acb76af47a37e13fba4e1ae0b (patch) | |
| tree | 66e9cce51bbcb9a0a1b0e05454916faf5417a63c /lib/dvb/epgcache.h | |
| parent | f51fb455f939496048538044c1597f2a8e14edba (diff) | |
| download | enigma2-1e830c12e59df00acb76af47a37e13fba4e1ae0b.tar.gz enigma2-1e830c12e59df00acb76af47a37e13fba4e1ae0b.zip | |
fix
Diffstat (limited to 'lib/dvb/epgcache.h')
| -rw-r--r-- | lib/dvb/epgcache.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lib/dvb/epgcache.h b/lib/dvb/epgcache.h index 8a62325d..3f1aeaed 100644 --- a/lib/dvb/epgcache.h +++ b/lib/dvb/epgcache.h @@ -72,22 +72,6 @@ struct uniqueEPGKey #define channelMapIterator std::map<iDVBChannel*, channel_data*>::iterator #define updateMap std::map<eDVBChannelID, time_t> -struct hash_32 -{ - inline size_t operator()( const __u32 &x) const - { - return (x >> 8)&0xFFFF; - } -}; - -struct equal_32 -{ - inline size_t operator()(const __u32 &x, const __u32 &y) const - { - return x == y; - } -}; - struct hash_uniqueEPGKey { inline size_t operator()( const uniqueEPGKey &x) const @@ -96,12 +80,11 @@ struct hash_uniqueEPGKey } }; +#define tidMap std::set<__u32> #if defined(__GNUC__) && ((__GNUC__ == 3 && __GNUC_MINOR__ >= 1) || __GNUC__ == 4 ) // check if gcc version >= 3.1 #define eventCache __gnu_cxx::hash_map<uniqueEPGKey, std::pair<eventMap, timeMap>, hash_uniqueEPGKey, uniqueEPGKey::equal> - #define tidMap __gnu_cxx::hash_set<__u32, hash_32, equal_32> #else // for older gcc use following #define eventCache std::hash_map<uniqueEPGKey, std::pair<eventMap, timeMap>, hash_uniqueEPGKey, uniqueEPGKey::equal > - #define tidMap std::hash_map<__u32, hash_32, equal_32> #endif #define descriptorPair std::pair<int,__u8*> |
