src/video/SDL_blit_N.c
changeset 6165 b7347e716ab6
parent 6138 4c64952a58fb
child 6281 e46d6f4b469e
--- a/src/video/SDL_blit_N.c	Sat Jan 07 01:21:50 2012 -0500
+++ b/src/video/SDL_blit_N.c	Sat Jan 07 01:25:55 2012 -0500
@@ -28,6 +28,9 @@
 /* Functions to blit from N-bit surfaces to other surfaces */
 
 #if SDL_ALTIVEC_BLITTERS
+#ifdef HAVE_ALTIVEC_H
+#include <altivec.h>
+#endif
 #define assert(X)
 #ifdef __MACOSX__
 #include <sys/sysctl.h>
@@ -108,9 +111,10 @@
     /* ARGB */
     const static const struct SDL_PixelFormat default_pixel_format = {
         0, NULL, 0, 0,
+        {0, 0},
+        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
         0, 0, 0, 0,
         16, 8, 0, 24,
-        0x00FF0000, 0x0000FF00, 0x000000FF, 0xFF000000,
         0, NULL
     };
     if (!srcfmt) {