summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/sdl/sdlwork.c
diff options
context:
space:
mode:
author Couriersud <couriersud@users.noreply.github.com>2010-01-21 22:54:49 +0000
committer Couriersud <couriersud@users.noreply.github.com>2010-01-21 22:54:49 +0000
commit10bee5ce7812d7faaecf238cf9570b802e02d56e (patch)
treecf71fbbc9cb1fb53efefef35bb916df2860fad15 /src/osd/sdl/sdlwork.c
parenta63d3b5de485918abd8bca4079ac221fe62f1d15 (diff)
The return of the "misc"
- Added sdlmisc_<targetos>.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.
Diffstat (limited to 'src/osd/sdl/sdlwork.c')
-rw-r--r--src/osd/sdl/sdlwork.c4
1 files changed, 2 insertions, 2 deletions
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"))