[LLVMdev] Linux-x86 Compatability
sabre at nondot.org
Fri Sep 13 10:38:01 PDT 2002
> >Interesting. INT64_MAX is supposed to be provided by
> >include/Support/DataTypes.h. Do you know of a reliable preprocessor
> >symbol that can be used to determine whether we're on a linux box, or
> Well, there is always __linux__, but that doesn't necessarily imply that
> we are on a Linux box with stdint.h.
Ok, I'll switch to that from the placeholder "LINUX".
> >(better yet) whether the system has a valid <stdint.h>?
> Nope. Autoconf is definitely the way to go here (even though converting
> is a pain).
Agreed. We plan to autoconfiscate LLVM eventually, but it won't get
started for quite some time. In the meantime, the #ifdef __linux__ hack
should be sufficient.
Thanks for the help,
More information about the llvm-dev