gallium: Disable debug_get_option for release builds on Windows.

It always creates the C:\gallium.cfg , even if it does not exists, which
might be confusing.
This commit is contained in:
José Fonseca 2008-05-09 14:34:51 +09:00
parent 2268306f58
commit 47f639a629
1 changed files with 4 additions and 0 deletions

View File

@ -154,6 +154,7 @@ debug_get_option(const char *name, const char *dfault)
{
const char *result;
#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY
#ifdef DEBUG
ULONG_PTR iFile = 0;
const void *pMap = NULL;
const char *sol, *eol, *sep;
@ -183,6 +184,9 @@ debug_get_option(const char *name, const char *dfault)
}
EngUnmapFile(iFile);
}
#else
result = dfault;
#endif
#else
result = getenv(name);