[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Compilation of src/xsettings.c fails when configured with --without_gset
From: |
wilde |
Subject: |
Compilation of src/xsettings.c fails when configured with --without_gsettings |
Date: |
Sat, 14 May 2022 20:27:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) |
Hi *,
When HAVE_GSETTINGS is not defined (e.g. --without-gsettings
configuration option), but HAVE_PGTK is defined, then compilation of
src/xsettings.c fails with:
../../src/xsettings.c: In function ‘xsettings_get_font_options’:
../../src/xsettings.c:1163:35: error: ‘font_options’ undeclared (first use in
this function)
1163 | return cairo_font_options_copy (font_options);
| ^~~~~~~~~~~~
../../src/xsettings.c:1163:35: note: each undeclared identifier is reported
only once for each function it appears in
../../src/xsettings.c: In function ‘syms_of_xsettings’:
../../src/xsettings.c:1220:3: error: ‘font_options’ undeclared (first use in
this function)
1220 | font_options = NULL;
| ^~~~~~~~~~~~
This happens due to the fact that: `font_options' is declared in L.231 which is
guarded by
#ifdef HAVE_GSETTINGS
in L.209.
This was problem was most likely introduced with:
commit 526e9758de7d163ce3b25fde69a4e122ce9c3742
Author: Pieter van Prooijen <pieter.van.prooijen@teloden.nl>
Date: Sun May 8 16:27:38 2022 +0200
Use gsettings font rendering entries for pgtk builds
cheers,
sascha
- Compilation of src/xsettings.c fails when configured with --without_gsettings,
wilde <=