Package: sdl-stretch Severity: normal Tags: patch When building 'sdl-stretch' with gcc-4.0, I get the following error:
sdlstretchcode.c: In function 'SDL_PutRowStretchCode': sdlstretchcode.c:174: error: invalid lvalue in increment sdlstretchcode.c:176: error: invalid lvalue in increment sdlstretchcode.c:182: error: invalid lvalue in increment make[3]: *** [sdlstretchcode.lo] Error 1 make[3]: Leaving directory `/sdl-stretch-0.2.3' With the attached patch 'sdl-stretch' can be compiled using gcc-4.0. Regards Andreas Jochens @@ -58,14 +58,8 @@ # define SKIP_1BYTE(dst) { *dst++ = 0x46; } # define SKIP_2BYTe(dst) { *dst++ = 0x46; *dst++ = 0x46; } # define SKIP_3BYTE(dst) { *dst++ = 0x46; *dst++ = 0x46; *dst++ = 0x46; } -# ifndef __GNUC__ -# define LOAD_2BYTE(dst) LOAD_2BYTe(dst) -# define STORE_2BYTE(dst) STORE_2BYTe(dst) -# else -# define LOAD_2BYTE(dst) { *((unsigned short*)(dst))++ = 0xAD66; } -# define SKIP_2BYTE(dst) { *((unsigned short*)(dst))++ = 0x4646; } -# define STORE_2BYTE(dst) { *((unsigned short*)(dst))++ = 0xAB66; } -# endif +# define LOAD_2BYTE(dst) LOAD_2BYTe(dst) +# define STORE_2BYTE(dst) STORE_2BYTe(dst) #ifndef SKIP_1BYTE #define SKIP_1BYTE(dst) LOAD_1BYTE(dst) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]