mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 22:00:13 +01:00
util/disk_cache: Make disk_cache_os.h usable by C++ code
The cache tests are written in C++ and the upcoming new Mese-DB cache tests will need to include disk_cache_os.h that misses extern "C" modifier required by C++ linkage. Add the modifier. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Signed-off-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16888>
This commit is contained in:
parent
517e523a2a
commit
f64f74b8f2
1 changed files with 8 additions and 0 deletions
|
|
@ -34,6 +34,10 @@
|
||||||
|
|
||||||
#include "util/fossilize_db.h"
|
#include "util/fossilize_db.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Number of bits to mask off from a cache key to get an index. */
|
/* Number of bits to mask off from a cache key to get an index. */
|
||||||
#define CACHE_INDEX_KEY_BITS 16
|
#define CACHE_INDEX_KEY_BITS 16
|
||||||
|
|
||||||
|
|
@ -141,6 +145,10 @@ disk_cache_mmap_cache_index(void *mem_ctx, struct disk_cache *cache,
|
||||||
void
|
void
|
||||||
disk_cache_destroy_mmap(struct disk_cache *cache);
|
disk_cache_destroy_mmap(struct disk_cache *cache);
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* DISK_CACHE_OS_H */
|
#endif /* DISK_CACHE_OS_H */
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue