comparison src/audio/esd/SDL_esdaudio.c @ 1402:d910939febfa

Use consistent identifiers for the various platforms we support. Make sure every source file includes SDL_config.h, so the proper system headers are chosen.
author Sam Lantinga <slouken@libsdl.org>
date Tue, 21 Feb 2006 08:46:50 +0000
parents c0a74f199ecf
children 9f836cec0521
comparison
equal deleted inserted replaced
1401:1819fd069e89 1402:d910939febfa
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 18
19 Sam Lantinga 19 Sam Lantinga
20 slouken@libsdl.org 20 slouken@libsdl.org
21 */ 21 */
22 #include "SDL_config.h"
22 23
23 /* Allow access to an ESD network stream mixing buffer */ 24 /* Allow access to an ESD network stream mixing buffer */
24 25
25 #include <errno.h> 26 #include <errno.h>
26 #include <esd.h> 27 #include <esd.h>
242 243
243 /* Try to get the name of the program */ 244 /* Try to get the name of the program */
244 static char *get_progname(void) 245 static char *get_progname(void)
245 { 246 {
246 char *progname = NULL; 247 char *progname = NULL;
247 #ifdef linux 248 #ifdef __LINUX__
248 FILE *fp; 249 FILE *fp;
249 static char temp[BUFSIZ]; 250 static char temp[BUFSIZ];
250 251
251 SDL_snprintf(temp, SDL_arraysize(temp), "/proc/%d/cmdline", getpid()); 252 SDL_snprintf(temp, SDL_arraysize(temp), "/proc/%d/cmdline", getpid());
252 fp = fopen(temp, "r"); 253 fp = fopen(temp, "r");