diff options
author | José Fonseca <[email protected]> | 2008-05-29 19:24:53 +0900 |
---|---|---|
committer | José Fonseca <[email protected]> | 2008-05-30 03:33:06 +0900 |
commit | 2691c228701e0d3a048eaaa698ba2236c2650d08 (patch) | |
tree | 821f7baf42c3606f6f14284f14cde4dbe2f96558 | |
parent | 529b3f4cc0ce3a3219daf5e1e8d4248cd1afe286 (diff) |
gallium: Replace getenv by placeholder code on WinCE.
WinCE processes supposedly have environment, but it is not clear which API to use.
-rw-r--r-- | src/gallium/auxiliary/util/p_debug.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/gallium/auxiliary/util/p_debug.c b/src/gallium/auxiliary/util/p_debug.c index ce7fb589562..d1dfc377f85 100644 --- a/src/gallium/auxiliary/util/p_debug.c +++ b/src/gallium/auxiliary/util/p_debug.c @@ -153,7 +153,9 @@ const char * debug_get_option(const char *name, const char *dfault) { const char *result; -#ifdef PIPE_SUBSYSTEM_WINDOWS_DISPLAY +#if defined(PIPE_SUBSYSTEM_WINDOWS_DISPLAY) + /* EngMapFile creates the file if it does not exists, so it must either be + * disabled on release versions (or put in a less conspicuous place). */ #ifdef DEBUG ULONG_PTR iFile = 0; const void *pMap = NULL; @@ -161,9 +163,6 @@ debug_get_option(const char *name, const char *dfault) static char output[1024]; result = dfault; - /* XXX: this creates the file if it does not exists, so it must either be - * disabled on release versions, or put in a less conspicuous place. - */ pMap = EngMapFile(L"\\??\\c:\\gallium.cfg", 0, &iFile); if(pMap) { sol = (const char *)pMap; @@ -187,13 +186,15 @@ debug_get_option(const char *name, const char *dfault) #else result = dfault; #endif +#elif defined(PIPE_SUBSYSTEM_WINDOWS_CE) + /* TODO: implement */ + result = dfault; #else - result = getenv(name); if(!result) result = dfault; #endif - + debug_printf("%s: %s = %s\n", __FUNCTION__, name, result ? result : "(null)"); return result; |