util/disk_cache: Fix disk_cache_get_function_timestamp with disabled cache.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Wed, 18 Jul 2018 11:58:49 +0000 (13:58 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Fri, 20 Jul 2018 10:09:19 +0000 (12:09 +0200)
commitcc10b34e9ed1104f4ceb88a49a42e1d6a743d52f
tree92a3778495fecce8eb617f5abaacf87908c96f2a
parent8cacf38f527d42e41441ef8c25d95d4b2f4e8602
util/disk_cache: Fix disk_cache_get_function_timestamp with disabled cache.

radv always needs it, so just check the header instead. Also
do not declare the function if the variable is not set, so we
get a nice compile error instead of failing to open a device
at runtime.

Fixes: b87ef9e606a "util: fix MSVC build issue in disk_cache.h"
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
configure.ac
meson.build
src/util/disk_cache.h