build: modernize a bit (pptp port)

parent 09f58265
......@@ -11,8 +11,6 @@ nm_l2tp_auth_dialog_CPPFLAGS = \
-DUIDIR=\""$(uidir)"\" \
-DBINDIR=\""$(bindir)"\" \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\"
nm_l2tp_auth_dialog_SOURCES = \
......
......@@ -20,8 +20,6 @@ libnm_l2tp_properties_la_CFLAGS = \
-DICONDIR=\""$(datadir)/pixmaps"\" \
-DUIDIR=\""$(uidir)"\" \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
-DGTK_DISABLE_DEPRECATED \
-DVERSION=\"$(VERSION)\"
libnm_l2tp_properties_la_LIBADD = \
......
......@@ -315,7 +315,9 @@ plugin_init (void)
DBusGConnection *bus;
GError *err = NULL;
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
#endif
g_message ("nm-l2tp-ppp-plugin: (%s): initializing", __func__);
......
......@@ -38,6 +38,7 @@
#include <sys/stat.h>
#include <sys/wait.h>
#include <ctype.h>
#include <locale.h>
#include <errno.h>
#include <sys/socket.h>
......@@ -1634,7 +1635,9 @@ main (int argc, char *argv[])
{NULL}
};
#if !GLIB_CHECK_VERSION (2, 35, 0)
g_type_init ();
#endif
/* locale will be set according to environment LC_* variables */
setlocale (LC_ALL, "");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment