diff options
author | Manuel Teira <manuel.teira@telefonica.net> | 2007-04-29 19:23:42 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-04-29 19:23:42 +0000 |
commit | 299a342a86994d5bc40edaec9be7a08c5aea0d24 (patch) | |
tree | 576288eb8e82cdc2a6ef0e3980837a7a361a9a98 /packages/snes9x/snes9x-sdl/gcc-4.1.patch | |
parent | 91a272da8c2875e7f56113afe07f4a05b932cf1d (diff) |
snes9x: fix linkage and gcc4 problems, closes #2154
Diffstat (limited to 'packages/snes9x/snes9x-sdl/gcc-4.1.patch')
-rw-r--r-- | packages/snes9x/snes9x-sdl/gcc-4.1.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/snes9x/snes9x-sdl/gcc-4.1.patch b/packages/snes9x/snes9x-sdl/gcc-4.1.patch new file mode 100644 index 0000000000..a63c0519d3 --- /dev/null +++ b/packages/snes9x/snes9x-sdl/gcc-4.1.patch @@ -0,0 +1,28 @@ + +# +# Patch managed by http://www.holgerschurig.de/patcher.html +# + +--- snes9x-sdl-1.39/dsp1.h~gcc-4.1 ++++ snes9x-sdl-1.39/dsp1.h +@@ -233,8 +233,8 @@ + void S9xResetDSP1 (); + uint8 S9xGetDSP (uint16 Address); + void S9xSetDSP (uint8 Byte, uint16 Address); +-END_EXTERN_C + + extern struct SDSP1 DSP1; ++END_EXTERN_C + + #endif +--- snes9x-sdl-1.39/unix/unix.cpp~gcc-4.1 ++++ snes9x-sdl-1.39/unix/unix.cpp +@@ -1046,7 +1046,7 @@ + { + } + +-static uint8 Buf[MAX_BUFFER_SIZE]; ++static uint8 Buf[MAX_BUFFER_SIZE] __attribute__((aligned(4))); + + #define FIXED_POINT 0x10000 + #define FIXED_POINT_SHIFT 16 |