author | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2004-11-16 19:14:18 (UTC) |
commit | ea3945a9bd8f9830f70b1efa133f9df13b19362f (patch) (unidiff) | |
tree | f2ea22cc50e9aa8aa73ee7dea148f41c563c9666 /noncore/unsupported/libopie/sharp_compat.cpp | |
parent | 1c6f490e8541626f68422e0a3a7c7281d7f5b7d3 (diff) | |
download | opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.zip opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.gz opie-ea3945a9bd8f9830f70b1efa133f9df13b19362f.tar.bz2 |
libopie1 goes into unsupported
Diffstat (limited to 'noncore/unsupported/libopie/sharp_compat.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/unsupported/libopie/sharp_compat.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/noncore/unsupported/libopie/sharp_compat.cpp b/noncore/unsupported/libopie/sharp_compat.cpp new file mode 100644 index 0000000..1d16a09 --- a/dev/null +++ b/noncore/unsupported/libopie/sharp_compat.cpp | |||
@@ -0,0 +1,18 @@ | |||
1 | /* | ||
2 | * This file contains hacks or workarounds, that make it possible to use a normal | ||
3 | * libopie arm build (iPAQ or OZ) directly on the Sharp retail ROM. | ||
4 | * This way, we only need one 'official' libopie binary for all platforms. | ||
5 | */ | ||
6 | |||
7 | |||
8 | // 1) Opie's libqpe.so has an additional function in Sound, which is utilized | ||
9 | // in ODevice: | ||
10 | |||
11 | // ok this is really evil ;), but Sound::isFinished is only needed in the | ||
12 | // iPAQ part of ODevice, which is never called on Z's | ||
13 | // we add a "weak" symbol here. This will be used, if ld.so does not find | ||
14 | // a normal ("hard") symbol of the same name - hence only on the retail Z | ||
15 | |||
16 | struct Sound { bool Sound::isFinished ( ) const __attribute__(( weak )); }; | ||
17 | bool Sound::isFinished ( ) const { return true; } | ||
18 | |||