Hi, On Thu, 2 Oct 2003, Stephen Williams wrote:
OK, my product has a header file, _pli_types.h, that is generated by configure to account for word size in defining 64bit and 32bit types. But if I'm going to support 64 and 32bit compilation on AMD64, I'm going to need to do something about that. I may be able to resort to inttypes.h for this specific problem, but is there a general solution?
It would really be better to use generic POSIX (or glibc) headers, i.e. inttypes.h. If you really, really need this, you can do like the asm headers on amd64 for system. For a header x.h they have asm-i386/x.h and asm-x86_64/x.h, and the generic x.h header just does: #ifdef __x86_64__ #include <asm-x86_64/x.h> #else #include <asm-i386/x.h> #endif __x86_64__ is not defined with -m32, hence can be used to distinguish the compile mode. Ciao, Michael.