summaryrefslogtreecommitdiff
path: root/noncore/unsupported/libopie/sharp_compat.cpp
blob: 1d16a0951545e26c9fd62b7cc1e22e4331ee7490 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * This file contains hacks or workarounds, that make it possible to use a normal
 * libopie arm build (iPAQ or OZ) directly on the Sharp retail ROM.
 * This way, we only need one 'official' libopie binary for all platforms.
 */


// 1) Opie's libqpe.so has an additional function in Sound, which is utilized
//    in ODevice:

// ok this is really evil ;), but Sound::isFinished is only needed in the
// iPAQ part of ODevice, which is never called on Z's
// we add a "weak" symbol here. This will be used, if ld.so does not find
// a normal ("hard") symbol of the same name - hence only on the retail Z

struct Sound { bool Sound::isFinished ( ) const __attribute__(( weak )); };
bool Sound::isFinished ( ) const { return true; }