util/disk_cache: support caches for multiple architectures
authorTimothy Arceri <tarceri@itsqueeze.com>
Sat, 4 Mar 2017 21:07:22 +0000 (08:07 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 5 Mar 2017 22:27:01 +0000 (09:27 +1100)
commit11f0efec2e615f5233defdd8ca9693c54ea49b1f
treecfb5552d261170689ca8a7f250fd8d399c8ff078
parent175d4aa8f52a01dd21fb3774c9638a866da5dca8
util/disk_cache: support caches for multiple architectures

Previously we were deleting the entire cache if a user switched
between 32 and 64 bit applications.

V2: make the check more generic, it should now work with any
platform we are likely to support.

V3: Use suggestion from Emil to make even more generic/fix issue
with __ILP32__ not being declared on gcc for regular 32-bit builds.

Tested-by: Grazvydas Ignotas <notasas@gmail.com>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
src/util/disk_cache.c