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

View File

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