]> git.ipfire.org Git - thirdparty/zstd.git/commit
fix #820 : GCC v3.x 32-bits doesn't define 64-bits intrinsic 837/head
authorYann Collet <cyan@fb.com>
Mon, 11 Sep 2017 22:17:31 +0000 (15:17 -0700)
committerYann Collet <cyan@fb.com>
Mon, 11 Sep 2017 22:17:31 +0000 (15:17 -0700)
commit3306bcb0e623ccd51f9f1049dba8e88c55e1db0d
treebed5b1dab2b60388975e3ae6df5024b45b7c93ac
parentf325ee4e84f2042e8c5747119db9160bcea52e96
fix #820 : GCC v3.x 32-bits doesn't define 64-bits intrinsic

resulting in undefined symbol error.
Push the requirement to GCC 4 for now.
Another solution, proposed by @NWilson, is to use __LONG_MAX__ instead.
__LONG_MAX__ is a GCC-specific constant, which value is supposed to depend on underlying target hardware (32/64 bits)
Might be better, but seems also more complex, hence more prone to side effects.
Keeping the simple solution for now (just rely on __GNUC__)
lib/compress/zstd_compress.h