include/Makefile.am
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Sep 2003 18:32:04 +0000
changeset 720 f90d80d68071
parent 652 a3bb929c9e2f
child 739 22dbf364c017
permissions -rw-r--r--
N Sep 17 8791 Sam Lantinga Re: tks source released
Date: Sun, 07 Sep 2003 02:51:58 +0200
From: Stephane Marchesin
Subject: [SDL] Two little patches

Compiling SDL with a recent gcc (gcc 3.3.1, 3.3 doesn't have this
behaviour) gives some nasty warnings :

SDL_blit_A.c: In function `BlitRGBtoRGBSurfaceAlpha128MMX':
SDL_blit_A.c:223: warning: integer constant is too large for "long" type
SDL_blit_A.c:225: warning: integer constant is too large for "long" type
SDL_blit_A.c:227: warning: integer constant is too large for "long" type
[...]

The first attached patch (longlongfix.patch) tells gcc to really treat
those constants as unsigned long long and not long.

The second patch (nasinclude.patch) fixes an include problem I had while
compiling nas audio : when the <audio/audiolib.h> file lies in
/usr/X11R6/include, a -I/usr/X11R6/include option is needed or the file
isn't found.
     1 # The input Makefile for SDL header files
     2 
     3 # The directory where the include files will be installed
     4 libSDLincludedir = $(includedir)/SDL
     5 
     6 # Which header files to install
     7 libSDLinclude_HEADERS =		\
     8 	SDL.h			\
     9 	SDL_active.h		\
    10 	SDL_audio.h		\
    11 	SDL_byteorder.h		\
    12 	SDL_cdrom.h		\
    13 	SDL_copying.h		\
    14 	SDL_endian.h		\
    15 	SDL_error.h		\
    16 	SDL_events.h		\
    17 	SDL_getenv.h		\
    18 	SDL_joystick.h		\
    19 	SDL_keyboard.h		\
    20 	SDL_keysym.h		\
    21 	SDL_loadso.h		\
    22 	SDL_main.h		\
    23 	SDL_mouse.h		\
    24 	SDL_mutex.h		\
    25 	SDL_name.h		\
    26 	SDL_opengl.h		\
    27 	SDL_quit.h		\
    28 	SDL_rwops.h		\
    29 	SDL_syswm.h		\
    30 	SDL_thread.h		\
    31 	SDL_timer.h		\
    32 	SDL_types.h		\
    33 	SDL_version.h		\
    34 	SDL_video.h		\
    35 	begin_code.h		\
    36 	close_code.h