From 10bee5ce7812d7faaecf238cf9570b802e02d56e Mon Sep 17 00:00:00 2001 From: Couriersud Date: Thu, 21 Jan 2010 22:54:49 +0000 Subject: The return of the "misc" - Added sdlmisc_.c again. This was necessary since certain tools create stubs for e.g. osd_break_into_debugger. If we do not have this in a separate file, the link stage may break. - Applied OS/2 patch [Credit: KO Myung-Hun] - Cleaned up #includes. Removed stdlib.h were possible. - More malloc to osd_malloc rename. - SDL monitor modes are read now when they are needed. This is now consistent across platforms. --- src/osd/sdl/sdlwork.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/osd/sdl/sdlwork.c') diff --git a/src/osd/sdl/sdlwork.c b/src/osd/sdl/sdlwork.c index 2cd602c36bc..4edfcad6463 100644 --- a/src/osd/sdl/sdlwork.c +++ b/src/osd/sdl/sdlwork.c @@ -571,7 +571,7 @@ static int effective_num_processors(void) else { // if the OSDPROCESSORS environment variable is set, use that value if valid - procsoverride = getenv(SDLENV_PROCESSORS); + procsoverride = osd_getenv(SDLENV_PROCESSORS); if (procsoverride != NULL && sscanf(procsoverride, "%d", &numprocs) == 1 && numprocs > 0) return MIN(4 * physprocs, numprocs); @@ -590,7 +590,7 @@ static UINT32 effective_cpu_mask(int index) char buf[5]; UINT32 mask = 0xFFFF; - s = getenv(SDLENV_CPUMASKS); + s = osd_getenv(SDLENV_CPUMASKS); if (s != NULL && strcmp(s,"none")) { if (!strcmp(s,"auto")) -- cgit v1.2.3