Can't compile with glib version 2.36.3
There is a compiler error when I try to use an old glib version:
| In file included from ./shared/nm-default.h:45:0, | from shared/nm-utils/nm-shared-utils.c:22: | ./shared/nm-utils/nm-glib.h:456:13: error: expected declaration specifiers or '...' before numeric constant | ./shared/nm-utils/nm-glib.h:456:16: error: expected declaration specifiers or '...' before numeric constant | In file included from ./shared/nm-default.h:45:0, | from shared/nm-utils/nm-vpn-plugin-utils.c:22: | ./shared/nm-utils/nm-glib.h:456:13: error: expected declaration specifiers or '...' before numeric constant | ./shared/nm-utils/nm-glib.h:456:16: error: expected declaration specifiers or '...' before numeric constant
I found a call to _nm_printf in nm-glib.h without any context in a version dependent #if
Removing this call solved the problem.