Closed GoogleCodeExporter closed 9 years ago
Thanks for reporting and very clear input.
I've looked for guidance, and found this link :
http://nadeausoftware.com/articles/2012/02/c_c_tip_how_detect_processor_type_usi
ng_compiler_predefined_macros#x86andx8664
It basically states that
#if defined(__x86_64__) || defined(_M_X64)
is enough to guarantee detection of AMD64 systems across all major compilers.
Would you mind testing this hypothesis ?
Regards
Original comment by yann.col...@gmail.com
on 29 May 2013 at 8:25
Original comment by yann.col...@gmail.com
on 29 May 2013 at 8:25
I changed my code to look like this:
#if defined(__x86_64__) || defined(_M_X64)
# define LZ4_ARCH64 1
#else
# define LZ4_ARCH64 0
#endif
That was sufficient to work for Visual Studio 2010. I do not have any other
compilers to verify with.
Original comment by dkar...@gmail.com
on 29 May 2013 at 1:49
OK, thanks,
we'll trust this reference, since it seems very well documented,
this will be corrected in next release.
Refards
Original comment by yann.col...@gmail.com
on 29 May 2013 at 1:51
Corrected into r97
Original comment by yann.col...@gmail.com
on 10 Jun 2013 at 6:42
Original issue reported on code.google.com by
dkar...@gmail.com
on 28 May 2013 at 9:23