diff src/audio/disk/SDL_diskaudio.c @ 1341:d02b552e5304

Configure dynamically generates SDL_config.h I'm still wrestling with autoheader, but this should work for now... Fixed lots of build problems with C library support disabled
author Sam Lantinga <slouken@libsdl.org>
date Tue, 07 Feb 2006 12:11:33 +0000
parents 604d73db6802
children c71e05b4dc2e
line wrap: on
line diff
--- a/src/audio/disk/SDL_diskaudio.c	Tue Feb 07 11:18:21 2006 +0000
+++ b/src/audio/disk/SDL_diskaudio.c	Tue Feb 07 12:11:33 2006 +0000
@@ -26,6 +26,7 @@
 /* Output raw audio data to a file. */
 
 #include <stdio.h>
+#include <string.h>	/* For strerror() */
 #include <errno.h>
 #include <unistd.h>
 #include <sys/stat.h>
@@ -130,7 +131,7 @@
 	SDL_memset(this->hidden, 0, (sizeof *this->hidden));
 
     envr = SDL_getenv(DISKENVR_WRITEDELAY);
-    this->hidden->write_delay = (envr) ? atoi(envr) : DISKDEFAULT_WRITEDELAY;
+    this->hidden->write_delay = (envr) ? SDL_atoi(envr) : DISKDEFAULT_WRITEDELAY;
 
 	/* Set the function pointers */
 	this->OpenAudio = DISKAUD_OpenAudio;