mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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
1 changed files with 4 additions and 2 deletions
|
|
@ -157,9 +157,11 @@ cdata.set('HAVE_FDWALK',
|
||||||
)
|
)
|
||||||
|
|
||||||
polkit_has_autocleanup = cc.compiles(
|
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>
|
#include <polkitagent/polkitagent.h>
|
||||||
void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }',
|
void main(void) { g_autoptr(PolkitAgentListener) agent = NULL; }
|
||||||
|
''',
|
||||||
dependencies: polkit_dep)
|
dependencies: polkit_dep)
|
||||||
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
|
cdata.set('HAVE_POLKIT_AUTOCLEANUP', polkit_has_autocleanup)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue