README
author Sam Lantinga <slouken@libsdl.org>
Sun, 21 Sep 2003 18:32:04 +0000
changeset 720 f90d80d68071
parent 702 61b7f5eed0e8
child 1276 ca3718c215af
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 
     2                          Simple DirectMedia Layer
     3 
     4                                   (SDL)
     5 
     6                                 Version 1.2
     7 
     8 ---
     9 http://www.libsdl.org/
    10 
    11 This is the Simple DirectMedia Layer, a general API that provides low
    12 level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL,
    13 and 2D framebuffer across multiple platforms.
    14 
    15 SDL is written in C, but works with C++ natively, and has bindings to
    16 several other languages, including Ada, C#, Eiffel, Java, Lua, ML,
    17 Objective C, Perl, PHP, Pike, Python, and Ruby.
    18 
    19 The current version supports Linux, Windows, BeOS, MacOS, MacOS X,
    20 FreeBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX.  The code contains
    21 support for Windows CE, AmigaOS, Dreamcast, Atari, NetBSD, AIX, OSF/Tru64,
    22 RISC OS, and SymbianOS, but these are not officially supported.
    23 
    24 This library is distributed under GNU LGPL version 2, which can be
    25 found in the file  "COPYING".  This license allows you to use SDL
    26 freely in commercial programs as long as you link with the dynamic
    27 library.
    28 
    29 The best way to learn how to use SDL is to check out the header files in
    30 the "include" subdirectory and the programs in the "test" subdirectory.
    31 The header files and test programs are well commented and always up to date.
    32 More documentation is available in HTML format in "./docs/index.html"
    33 
    34 The test programs in the "test" subdirectory are in the public domain.
    35 
    36 Frequently asked questions are answered online:
    37 	http://www.libsdl.org/faq.php
    38 
    39 If you need help with the library, or just want to discuss SDL related
    40 issues, you can join the developers mailing list:
    41 	http://www.libsdl.org/mailing-list.php
    42 
    43 Enjoy!
    44 	Sam Lantinga				(slouken@libsdl.org)
    45