diff options
author | Jürg Billeter <j@bitron.ch> | 2015-01-13 08:19:14 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2015-01-13 08:20:35 +0100 |
commit | 1e11eff9a2cef3fa200d00a8a82f5d47c97d4c98 (patch) | |
tree | e8e9b942aae2b4de692ef8784245f5fc80071824 /compiler | |
parent | 32e79cad231fc400d9cc1ab5ca7aca1ed2e1473d (diff) | |
download | vala-1e11eff9a2cef3fa200d00a8a82f5d47c97d4c98.tar.gz |
Use GLib.Environment instead of GLib.Environ
GLib.Environ is not available in GLib < 2.32.
Diffstat (limited to 'compiler')
-rw-r--r-- | compiler/valacompiler.vala | 3 |
1 files changed, 1 insertions, 2 deletions
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 { |