build: Use multi-line string for embedded code
Newer meson versions complain about newline characters in regular strings, so switch to a proper multi-line string. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2350>
This commit is contained in:
parent
97b2079257
commit
0f61af6b85
@ -157,9 +157,11 @@ cdata.set('HAVE_FDWALK',
|
||||
)
|
||||
|
||||
polkit_has_autocleanup = cc.compiles(
|
||||
'#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
|
||||
'''
|
||||
#define POLKIT_AGENT_I_KNOW_API_IS_SUBJECT_TO_CHANGE
|
||||
#include <polkitagent/polkitagent.h>
|
||||
void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
|
||||
void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }
|
||||
''',
|
||||
dependencies: polkit_dep)
|
||||
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user