Would possibly something like defined(__clang__) && defined(__cplusplus) && (__cplusplus == 201103L) defined(__clang__) && defined(__STDC_VERSION__) && (__STDC_VERSION__ == 201112L)
do? The values given by g++ and clang++ to __cplusplus in C++11 mode match, as well as the values given by gcc and clang to __STDC_VERSION__ in C11 mode. Here is also a commonly used site for search: http://sourceforge.net/p/predef/wiki/Home/ On Sep 14, 2013, at 9:08 PM, Dirk Eddelbuettel <e...@debian.org> wrote: > > On 11 September 2013 at 19:05, Murray Stokely wrote: > | The default llvm/clang compiler on MacOS X 10.8 doesn't get 64-bit support > with > | Rcpp because compilers.h is specifically looking for -std=c++0x as is > required > | by some versions of gcc. > | > | This is overly restrictive as e.g. __LP64__ platforms with _LONG_LONG_MAX > set > | will also certainly have a suitable long long type. > > __LP64__ is the opposite, and too generous. It gets eg turned on by my > default (non -std=c++0x) build with g++. > > Per http://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html it seems > __LP64__ is a standard GNU extension. > > So I think we need something better. Is there something that is true IFF both > clang and c++11 are selected? > > Dirk > > | Patch attached or at : > | > | http://www.stokely.org/patches/compiler.int64.diff > | > | - Murray > | xuntyped binary data, compiler.int64 [Click mouse-2 to save to a file] > | _______________________________________________ > | Rcpp-devel mailing list > | Rcpp-devel@lists.r-forge.r-project.org > | https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel > -- > Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com > _______________________________________________ > Rcpp-devel mailing list > Rcpp-devel@lists.r-forge.r-project.org > https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel