Skip to content
Permalink
Browse files

Patched to compile.

  • Loading branch information
icculus committed Jan 6, 2006
1 parent eba11d6 commit c49b59d90fc4b2d0792cca27c7ed0b3c414bc406
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/video/SDL_stretch.c
@@ -58,9 +58,6 @@ static char rcsid =
#error Need assembly opcodes for this architecture
#endif

#if defined(__ELF__) && defined(__GNUC__)
extern unsigned char _copy_row[4096] __attribute__ ((alias ("copy_row")));
#endif
static unsigned char copy_row[4096];

static int generate_rowbytes(int src_w, int dst_w, int bpp)
@@ -288,7 +285,7 @@ int SDL_SoftStretch(SDL_Surface *src, SDL_Rect *srcrect,
__asm__ __volatile__ (
"call *%4"
: "=&D" (u1), "=&S" (u2)
: "0" (dstp), "1" (srcp), "r" (&_copy_row)
: "0" (dstp), "1" (srcp), "r" (&copy_row)
: "memory" );
#else
#ifdef WIN32

0 comments on commit c49b59d

Please sign in to comment.