summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-12-30 19:00:54 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-05-19 03:43:27 +0200
commitd409f95c3f948cf95e7778a7017b68222b1c391e (patch)
tree20ab9c931b7f9e8c5a1c31aefa04b2c4bdebb85f /onlineupdate
parenta37547e6c09a35fa8738288271448a7ab11cde86 (diff)
hide the function behind the correct define checks
Change-Id: Ifef59d40975b6061a40b58d80817b6c15b856713
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/updater.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/onlineupdate/source/update/updater/updater.cxx b/onlineupdate/source/update/updater/updater.cxx
index 2a680139459c..3b560bbfe6ea 100644
--- a/onlineupdate/source/update/updater/updater.cxx
+++ b/onlineupdate/source/update/updater/updater.cxx
@@ -277,12 +277,14 @@ mstrtok(const NS_tchar *delims, NS_tchar **str)
return ret;
}
+#if defined(_WIN32) && defined(MAINTENANCE_SERVICE)
static bool
EnvHasValue(const char *name)
{
const char *val = getenv(name);
return (val && *val);
}
+#endif
/**
* Coverts a relative update path to a full path.