Use the version number inside the cache file to mark backward compatible
changes while continuing to reserve the filename number for incompatible
changes.
allocated = FcTrue;
}
if (cache->magic != FC_CACHE_MAGIC_MMAP ||
- cache->version != FC_CACHE_CONTENT_VERSION ||
+ cache->version < FC_CACHE_CONTENT_VERSION ||
cache->size != size)
{
if (allocated)
ret = FcFalse;
else if (c.magic != FC_CACHE_MAGIC_MMAP)
ret = FcFalse;
- else if (c.version != FC_CACHE_CONTENT_VERSION)
+ else if (c.version < FC_CACHE_CONTENT_VERSION)
ret = FcFalse;
else if (fstat (fd, &file_stat) < 0)
ret = FcFalse;