util/disk_cache: Implement disk_cache_get_function_identifier for Windows
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17208>
This commit is contained in:
@@ -34,6 +34,7 @@
|
||||
#include <stdbool.h>
|
||||
#include <sys/stat.h>
|
||||
#include "util/mesa-sha1.h"
|
||||
#include "util/detect_os.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -133,6 +134,9 @@ disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
#elif DETECT_OS_WINDOWS
|
||||
bool
|
||||
disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx);
|
||||
#else
|
||||
static inline bool
|
||||
disk_cache_get_function_identifier(void *ptr, struct mesa_sha1 *ctx)
|
||||
|
||||
Reference in New Issue
Block a user