[cfe-users] Macro for long long types
Simon Zehnder
szehnder at uni-bonn.de
Sun Sep 15 11:44:49 PDT 2013
Dear all,
We want to make available specific types in a library that rely on long long types. As users could have either gcc or clang, the header has to account for this. See here for a patch made by a user, which criticises, that when only looking for -std=c++0x on machines with clang you do not get 64bit support: http://www.stokely.org/patches/compiler.int64.diff.
On the other side the suggested macro (__LP64__) in the patch is too generous, as it gets turned on by gcc even if -std=c++0x is not.
Does anyone know? Or is there a website where the clang macros are all listed … couldn't find something promising.
Best
Simon
More information about the cfe-users
mailing list