Fixes for new SDL embedded libc stuff
authorPatrice Mandin <patmandin@gmail.com>
Wed, 08 Feb 2006 18:59:49 +0000
changeset 1350 adc8ff3c9597
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
--- a/src/audio/mint/SDL_mintaudio.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/audio/mint/SDL_mintaudio.c	Wed Feb 08 18:59:49 2006 +0000
@@ -26,7 +26,6 @@
 	Patrice Mandin
 */
 
-#include <string.h>
 #include <unistd.h>
 
 #include <mint/osbind.h>
@@ -35,6 +34,7 @@
 
 #include "SDL_types.h"
 #include "SDL_audio.h"
+#include "SDL_string.h"
 
 #include "SDL_mintaudio.h"
 #include "SDL_mintaudio_stfa.h"
--- a/src/cdrom/mint/SDL_syscdrom.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/cdrom/mint/SDL_syscdrom.c	Wed Feb 08 18:59:49 2006 +0000
@@ -33,6 +33,7 @@
 
 #include "SDL_error.h"
 #include "SDL_cdrom.h"
+#include "SDL_string.h"
 #include "SDL_syscdrom.h"
 
 /* Some ioctl() errno values which occur when the tray is empty */
--- a/src/joystick/mint/SDL_sysjoystick.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/joystick/mint/SDL_sysjoystick.c	Wed Feb 08 18:59:49 2006 +0000
@@ -34,6 +34,7 @@
 #include "SDL_types.h"
 #include "SDL_error.h"
 #include "SDL_joystick.h"
+#include "SDL_events.h"
 #include "SDL_sysjoystick.h"
 #include "SDL_joystick_c.h"
 
--- a/src/video/ataricommon/SDL_biosevents.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/video/ataricommon/SDL_biosevents.c	Wed Feb 08 18:59:49 2006 +0000
@@ -26,13 +26,12 @@
  *	Patrice Mandin
  */
 
-#include <string.h>
-
 /* Mint includes */
 #include <mint/osbind.h>
 #include <mint/cookie.h>
 
 #include "SDL.h"
+#include "SDL_string.h"
 #include "SDL_sysevents.h"
 #include "SDL_events_c.h"
 
--- a/src/video/ataricommon/SDL_gemdosevents.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/video/ataricommon/SDL_gemdosevents.c	Wed Feb 08 18:59:49 2006 +0000
@@ -26,13 +26,12 @@
  *	Patrice Mandin
  */
 
-#include <string.h>
-
 /* Mint includes */
 #include <mint/osbind.h>
 #include <mint/cookie.h>
 
 #include "SDL.h"
+#include "SDL_string.h"
 #include "SDL_sysevents.h"
 #include "SDL_events_c.h"
 
--- a/src/video/ataricommon/SDL_ikbdevents.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/video/ataricommon/SDL_ikbdevents.c	Wed Feb 08 18:59:49 2006 +0000
@@ -26,12 +26,11 @@
  *	Patrice Mandin
  */
 
-#include <string.h>
-
 /* Mint includes */
 #include <mint/osbind.h>
 
 #include "SDL.h"
+#include "SDL_string.h"
 #include "SDL_sysevents.h"
 #include "SDL_events_c.h"
 
--- a/src/video/gem/SDL_gemevents.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/video/gem/SDL_gemevents.c	Wed Feb 08 18:59:49 2006 +0000
@@ -29,11 +29,10 @@
  * Olivier Landemarre, Johan Klockars, Xavier Joubert, Claude Attard
  */
 
-#include <string.h>
-
 #include <gem.h>
 
 #include "SDL.h"
+#include "SDL_string.h"
 #include "SDL_sysevents.h"
 #include "SDL_events_c.h"
 #include "SDL_gemvideo.h"
--- a/src/video/xbios/SDL_xbios.c	Wed Feb 08 17:23:32 2006 +0000
+++ b/src/video/xbios/SDL_xbios.c	Wed Feb 08 18:59:49 2006 +0000
@@ -672,7 +672,7 @@
 			if (XBIOS_centscreen) {
 				SDL_XBIOS_CentscreenSetmode(this, width, height, new_depth);
 			} else {
-				Vsetmode(new_video_mode->number);
+				VsetMode(new_video_mode->number);
 			}
 #endif
 			/* Set hardware palette to black in True Colour */
@@ -884,7 +884,7 @@
 			if (XBIOS_centscreen) {
 				SDL_XBIOS_CentscreenRestore(this, XBIOS_oldvmode);
 			} else {
-				Vsetmode(XBIOS_oldvmode);
+				VsetMode(XBIOS_oldvmode);
 			}
 			if (XBIOS_oldnumcol) {
 				VsetRGB(0, XBIOS_oldnumcol, XBIOS_oldpalette);