about summary refs log tree commit diff stats
path: root/src/ui/confwin.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2022-05-31 08:50:44 +0200
committerMichael Vetter <jubalh@iodoru.org>2022-05-31 08:50:44 +0200
commit3557e46b6d1e99491be0dc4ee85fe157475c0ae3 (patch)
tree0f432595d07768259281a9a929691608ba576e38 /src/ui/confwin.c
parent1a7017e44cd1f6bc2ba16f46c7e92b6c0252e5c7 (diff)
downloadprofani-tty-3557e46b6d1e99491be0dc4ee85fe157475c0ae3.tar.gz
build: dont define HAVE_QRENCODE at all in case not present
Before we got an error when libqrencode was not installed:
`src/ui/console.c:52:10: fatal error: qrencode.h: No such file or
directory`

Which looked like HAVE_QRENCODE was true.

config.status showed:
`config.status:D["HAVE_QRENCODE"]=" 0"`

Holger pointed to me that there is not just true and false but defined
and undefined.
So one solution was to use `#if HAVE_QRENCODE == 1` to check for the
actual value.

Or dont define HAVE_QRENCODE in the non present case at all.

In all the other HAVE_ variables we use this approach.
I think i at first chose the wrong way out of confusion with BUILD_ and
HAVE_.
Diffstat (limited to 'src/ui/confwin.c')
0 files changed, 0 insertions, 0 deletions