From: Jürg Billeter Date: Tue, 13 Jan 2015 07:19:14 +0000 (+0100) Subject: Use GLib.Environment instead of GLib.Environ X-Git-Tag: 0.27.2~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1e11eff9a2cef3fa200d00a8a82f5d47c97d4c98;p=thirdparty%2Fvala.git Use GLib.Environment instead of GLib.Environ GLib.Environ is not available in GLib < 2.32. --- diff --git a/compiler/valacompiler.vala b/compiler/valacompiler.vala index fe0fdb9ae..d4f5d8bfe 100644 --- a/compiler/valacompiler.vala +++ b/compiler/valacompiler.vala @@ -174,8 +174,7 @@ class Vala.Compiler { CodeContext.push (context); if (disable_diagnostic_colors == false) { - string[] env_args = Environ.get (); - unowned string env_colors = Environ.get_variable (env_args, "VALA_COLORS"); + unowned string env_colors = Environment.get_variable ("VALA_COLORS"); if (env_colors != null) { context.report.set_colors (env_colors); } else {