[gtk|demos/gtk-demo]/language-names.c: Fix build on non-GCC/CLang
authorChun-wei Fan <fanchunwei@src.gnome.org>
Wed, 28 Mar 2018 03:59:11 +0000 (11:59 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 2 Apr 2018 11:13:27 +0000 (19:13 +0800)
commita4c0395343c3969c330cb37efa45ae952ba74b86
treea1f8676ebd770800f1cc214ed228f73c6335fd97
parent19ce520c2d8b37fd67bed3aaf8dbfa0e62df4454
[gtk|demos/gtk-demo]/language-names.c: Fix build on non-GCC/CLang

Remove g_auto*() usage from these sources and use the traditional
g_free(), as g_auto*() are GCCisms (or CLangisms).

Also, don't include unistd.h unconditionally and stop including
langinfo.h and dirent.h, since they seem to be unused.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
demos/gtk-demo/language-names.c
gtk/language-names.c