   linux equivalents of _WIN32 and _WIN64
  Hi,How can I distinguish 32-bit linux from 64-bit linux? Something like _WIN32 and _WIN64 for windows?Thanks.   
  This may or may not work for you, but#ifdef __LP64__ for 64 bit#ifdef __LP32__ for 32 bitThis works on some varients of Linux and not on others.There may also be#ifdef CONFIG_64BITSomeone else may be able to give a better answer on something that works for all brands.   ;  Thanks. I'll try them.   ;  __i386__ and __x86_64__ determine the architecture, but you'll have to detect Linux itself separately.   