Huh? Long long is 64bit using the linaro toolchains. Are you using just %ld rather than %lld ?
Anyways this sounds like a bug which should be reported rather than worked around if it is truely a bug in the toolchain rather than your code.
Thanks, Andrew
________________________________________ From: linaro-toolchain-bounces@lists.linaro.org linaro-toolchain-bounces@lists.linaro.org on behalf of Isidor Zeuner portability@quidecco.de Sent: Saturday, March 08, 2014 2:05 PM To: linaro-toolchain@lists.linaro.org Subject: detecting the linaro toolchain via C/C++ preprocessor
Hi there!
On Linaro gcc 4.6, I am facing an issue due to "long long" integers not being 64 bit as they are on other platforms I'm targeting, which causes different issues, most importantly with printf format strings. I am now circumventing these by using the C/C++ preprocessor in order to choose the right format strings. In order to minimize the necessity for users to manually configure things, I'm wondering if there is a way to detect the Linaro gcc compiler through preprocessor macros. Is this possible?
Thanks.
Best regards,
Isidor
_______________________________________________ linaro-toolchain mailing list linaro-toolchain@lists.linaro.org http://lists.linaro.org/mailman/listinfo/linaro-toolchain