Mercurial > sdl-ios-xcode
comparison src/video/SDL_blit_N.c @ 1336:3692456e7b0f
Use SDL_ prefixed versions of C library functions.
FIXME:
Change #include <stdlib.h> to #include "SDL_stdlib.h"
Change #include <string.h> to #include "SDL_string.h"
Make sure nothing else broke because of this...
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Tue, 07 Feb 2006 06:59:48 +0000 |
parents | 450721ad5436 |
children | 604d73db6802 |
comparison
equal
deleted
inserted
replaced
1335:c39265384763 | 1336:3692456e7b0f |
---|---|
815 static Uint32 GetBlitFeatures( void ) | 815 static Uint32 GetBlitFeatures( void ) |
816 { | 816 { |
817 static Uint32 features = 0xffffffff; | 817 static Uint32 features = 0xffffffff; |
818 if (features == 0xffffffff) { | 818 if (features == 0xffffffff) { |
819 /* Provide an override for testing .. */ | 819 /* Provide an override for testing .. */ |
820 char *override = getenv("SDL_ALTIVEC_BLIT_FEATURES"); | 820 char *override = SDL_getenv("SDL_ALTIVEC_BLIT_FEATURES"); |
821 if (override) { | 821 if (override) { |
822 features = 0; | 822 features = 0; |
823 sscanf(override, "%u", &features); | 823 SDL_sscanf(override, "%u", &features); |
824 } else { | 824 } else { |
825 features = ( 0 | 825 features = ( 0 |
826 /* Feature 1 is has-MMX */ | 826 /* Feature 1 is has-MMX */ |
827 | ((SDL_HasMMX()) ? 1 : 0) | 827 | ((SDL_HasMMX()) ? 1 : 0) |
828 /* Feature 2 is has-AltiVec */ | 828 /* Feature 2 is has-AltiVec */ |