From 85b104712b8bd4cf5247d5226260dd1528b7f57a Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Thu, 4 Apr 2013 21:45:15 +0300 Subject: No need to setenv SAL_LOG in the code for iOS One can set environment variables to be used when debugging an app in Xcode, which is when it is interesting to see SAL_INFO output anyway. (This is very different from Android, where one can't set environment variables "before" an app starts, as apps there aren't separate programs that would be exec'ed.) Change-Id: I3971d1b2d1a849deac2722a90271ef2458db1643 --- sal/osl/all/log.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sal/osl') diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx index 6106ac34fe09..a79f131a504a 100644 --- a/sal/osl/all/log.cxx +++ b/sal/osl/all/log.cxx @@ -97,10 +97,10 @@ char const * toString(sal_detail_LogLevel level) { #endif -// getenv is not thread safe, so minimize use of result; except on Android and -// iOS, see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is +// getenv is not thread safe, so minimize use of result; except on Android, +// see 60628799633ffde502cb105b98d3f254f93115aa "Notice if SAL_LOG is // changed while the process is running": -#if defined ANDROID || defined IOS +#if defined ANDROID char const * getEnvironmentVariable() { return std::getenv("SAL_LOG"); -- cgit