test/testver.c
changeset 850 c203b4a42701
parent 0 74212992fb08
child 1154 d93862a3d821
equal deleted inserted replaced
849:bab227101de4 850:c203b4a42701
     4 */
     4 */
     5 
     5 
     6 #include <stdio.h>
     6 #include <stdio.h>
     7 
     7 
     8 #include "SDL.h"
     8 #include "SDL.h"
     9 #include "SDL_byteorder.h"
       
    10 
     9 
    11 int main(int argc, char *argv[])
    10 int main(int argc, char *argv[])
    12 {
    11 {
    13 	SDL_version compiled;
    12 	SDL_version compiled;
    14 
    13 
    30 			compiled.major, compiled.minor, compiled.patch);
    29 			compiled.major, compiled.minor, compiled.patch);
    31 	printf("Linked version: %d.%d.%d\n",
    30 	printf("Linked version: %d.%d.%d\n",
    32 			SDL_Linked_Version()->major,
    31 			SDL_Linked_Version()->major,
    33 			SDL_Linked_Version()->minor,
    32 			SDL_Linked_Version()->minor,
    34 			SDL_Linked_Version()->patch);
    33 			SDL_Linked_Version()->patch);
    35 	printf("This is a %s endian machine.\n",
       
    36 		(SDL_BYTEORDER == SDL_LIL_ENDIAN) ? "little" : "big");
       
    37 	SDL_Quit();
    34 	SDL_Quit();
    38 	return(0);
    35 	return(0);
    39 }
    36 }