Fixes for new SDL embedded libc stuff
authorPatrice Mandin <patmandin@gmail.com>
Wed, 08 Feb 2006 18:59:49 +0000
changeset 1350adc8ff3c9597
parent 1349 3f395c825b14
child 1351 82c38796c7ca
Fixes for new SDL embedded libc stuff
src/audio/mint/SDL_mintaudio.c
src/cdrom/mint/SDL_syscdrom.c
src/joystick/mint/SDL_sysjoystick.c
src/video/ataricommon/SDL_biosevents.c
src/video/ataricommon/SDL_gemdosevents.c
src/video/ataricommon/SDL_ikbdevents.c
src/video/gem/SDL_gemevents.c
src/video/xbios/SDL_xbios.c
     1.1 --- a/src/audio/mint/SDL_mintaudio.c	Wed Feb 08 17:23:32 2006 +0000
     1.2 +++ b/src/audio/mint/SDL_mintaudio.c	Wed Feb 08 18:59:49 2006 +0000
     1.3 @@ -26,7 +26,6 @@
     1.4  	Patrice Mandin
     1.5  */
     1.6  
     1.7 -#include <string.h>
     1.8  #include <unistd.h>
     1.9  
    1.10  #include <mint/osbind.h>
    1.11 @@ -35,6 +34,7 @@
    1.12  
    1.13  #include "SDL_types.h"
    1.14  #include "SDL_audio.h"
    1.15 +#include "SDL_string.h"
    1.16  
    1.17  #include "SDL_mintaudio.h"
    1.18  #include "SDL_mintaudio_stfa.h"
     2.1 --- a/src/cdrom/mint/SDL_syscdrom.c	Wed Feb 08 17:23:32 2006 +0000
     2.2 +++ b/src/cdrom/mint/SDL_syscdrom.c	Wed Feb 08 18:59:49 2006 +0000
     2.3 @@ -33,6 +33,7 @@
     2.4  
     2.5  #include "SDL_error.h"
     2.6  #include "SDL_cdrom.h"
     2.7 +#include "SDL_string.h"
     2.8  #include "SDL_syscdrom.h"
     2.9  
    2.10  /* Some ioctl() errno values which occur when the tray is empty */
     3.1 --- a/src/joystick/mint/SDL_sysjoystick.c	Wed Feb 08 17:23:32 2006 +0000
     3.2 +++ b/src/joystick/mint/SDL_sysjoystick.c	Wed Feb 08 18:59:49 2006 +0000
     3.3 @@ -34,6 +34,7 @@
     3.4  #include "SDL_types.h"
     3.5  #include "SDL_error.h"
     3.6  #include "SDL_joystick.h"
     3.7 +#include "SDL_events.h"
     3.8  #include "SDL_sysjoystick.h"
     3.9  #include "SDL_joystick_c.h"
    3.10  
     4.1 --- a/src/video/ataricommon/SDL_biosevents.c	Wed Feb 08 17:23:32 2006 +0000
     4.2 +++ b/src/video/ataricommon/SDL_biosevents.c	Wed Feb 08 18:59:49 2006 +0000
     4.3 @@ -26,13 +26,12 @@
     4.4   *	Patrice Mandin
     4.5   */
     4.6  
     4.7 -#include <string.h>
     4.8 -
     4.9  /* Mint includes */
    4.10  #include <mint/osbind.h>
    4.11  #include <mint/cookie.h>
    4.12  
    4.13  #include "SDL.h"
    4.14 +#include "SDL_string.h"
    4.15  #include "SDL_sysevents.h"
    4.16  #include "SDL_events_c.h"
    4.17  
     5.1 --- a/src/video/ataricommon/SDL_gemdosevents.c	Wed Feb 08 17:23:32 2006 +0000
     5.2 +++ b/src/video/ataricommon/SDL_gemdosevents.c	Wed Feb 08 18:59:49 2006 +0000
     5.3 @@ -26,13 +26,12 @@
     5.4   *	Patrice Mandin
     5.5   */
     5.6  
     5.7 -#include <string.h>
     5.8 -
     5.9  /* Mint includes */
    5.10  #include <mint/osbind.h>
    5.11  #include <mint/cookie.h>
    5.12  
    5.13  #include "SDL.h"
    5.14 +#include "SDL_string.h"
    5.15  #include "SDL_sysevents.h"
    5.16  #include "SDL_events_c.h"
    5.17  
     6.1 --- a/src/video/ataricommon/SDL_ikbdevents.c	Wed Feb 08 17:23:32 2006 +0000
     6.2 +++ b/src/video/ataricommon/SDL_ikbdevents.c	Wed Feb 08 18:59:49 2006 +0000
     6.3 @@ -26,12 +26,11 @@
     6.4   *	Patrice Mandin
     6.5   */
     6.6  
     6.7 -#include <string.h>
     6.8 -
     6.9  /* Mint includes */
    6.10  #include <mint/osbind.h>
    6.11  
    6.12  #include "SDL.h"
    6.13 +#include "SDL_string.h"
    6.14  #include "SDL_sysevents.h"
    6.15  #include "SDL_events_c.h"
    6.16  
     7.1 --- a/src/video/gem/SDL_gemevents.c	Wed Feb 08 17:23:32 2006 +0000
     7.2 +++ b/src/video/gem/SDL_gemevents.c	Wed Feb 08 18:59:49 2006 +0000
     7.3 @@ -29,11 +29,10 @@
     7.4   * Olivier Landemarre, Johan Klockars, Xavier Joubert, Claude Attard
     7.5   */
     7.6  
     7.7 -#include <string.h>
     7.8 -
     7.9  #include <gem.h>
    7.10  
    7.11  #include "SDL.h"
    7.12 +#include "SDL_string.h"
    7.13  #include "SDL_sysevents.h"
    7.14  #include "SDL_events_c.h"
    7.15  #include "SDL_gemvideo.h"
     8.1 --- a/src/video/xbios/SDL_xbios.c	Wed Feb 08 17:23:32 2006 +0000
     8.2 +++ b/src/video/xbios/SDL_xbios.c	Wed Feb 08 18:59:49 2006 +0000
     8.3 @@ -672,7 +672,7 @@
     8.4  			if (XBIOS_centscreen) {
     8.5  				SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
     8.6  			} else {
     8.7 -				Vsetmode(new_video_mode->number);
     8.8 +				VsetMode(new_video_mode->number);
     8.9  			}
    8.10  #endif
    8.11  			/* Set hardware palette to black in True Colour */
    8.12 @@ -884,7 +884,7 @@
    8.13  			if (XBIOS_centscreen) {
    8.14  				SDL_XBIOS_CentscreenRestore(this, XBIOS_oldvmode);
    8.15  			} else {
    8.16 -				Vsetmode(XBIOS_oldvmode);
    8.17 +				VsetMode(XBIOS_oldvmode);
    8.18  			}
    8.19  			if (XBIOS_oldnumcol) {
    8.20  				VsetRGB(0, XBIOS_oldnumcol, XBIOS_oldpalette);