Fixed compiling AltiVec blitters
authorSam Lantinga <slouken@libsdl.org>
Sun, 27 Feb 2011 22:22:58 -0800
changeset 540740c9d744e595
parent 5406 1517da4ab6b1
child 5408 35a63789c3f2
Fixed compiling AltiVec blitters
include/SDL_cpuinfo.h
src/video/SDL_blit_A.c
src/video/SDL_blit_N.c
     1.1 --- a/include/SDL_cpuinfo.h	Sun Feb 27 22:06:46 2011 -0800
     1.2 +++ b/include/SDL_cpuinfo.h	Sun Feb 27 22:22:58 2011 -0800
     1.3 @@ -45,9 +45,7 @@
     1.4  #ifdef __ALTIVEC__
     1.5  #if HAVE_ALTIVEC_H && !defined(__APPLE_ALTIVEC__)
     1.6  #include <altivec.h>
     1.7 -#undef vector
     1.8  #undef pixel
     1.9 -#undef bool
    1.10  #endif
    1.11  #endif
    1.12  #ifdef __MMX__
     2.1 --- a/src/video/SDL_blit_A.c	Sun Feb 27 22:06:46 2011 -0800
     2.2 +++ b/src/video/SDL_blit_A.c	Sun Feb 27 22:22:58 2011 -0800
     2.3 @@ -499,10 +499,11 @@
     2.4       */
     2.5      /* ARGB */
     2.6      const static struct SDL_PixelFormat default_pixel_format = {
     2.7 -        NULL, 0, 0,
     2.8 +        0, NULL, 0, 0,
     2.9          0, 0, 0, 0,
    2.10          16, 8, 0, 24,
    2.11 -        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
    2.12 +        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
    2.13 +        0, NULL
    2.14      };
    2.15      if (!srcfmt) {
    2.16          srcfmt = &default_pixel_format;
     3.1 --- a/src/video/SDL_blit_N.c	Sun Feb 27 22:06:46 2011 -0800
     3.2 +++ b/src/video/SDL_blit_N.c	Sun Feb 27 22:22:58 2011 -0800
     3.3 @@ -108,10 +108,11 @@
     3.4       */
     3.5      /* ARGB */
     3.6      const static const struct SDL_PixelFormat default_pixel_format = {
     3.7 -        NULL, 32, 4,
     3.8 +        0, NULL, 0, 0,
     3.9          0, 0, 0, 0,
    3.10          16, 8, 0, 24,
    3.11 -        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000
    3.12 +        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
    3.13 +        0, NULL
    3.14      };
    3.15      if (!srcfmt) {
    3.16          srcfmt = &default_pixel_format;