Lee Rhodes wrote:
Apparently, GCC predefines some macro variables such as __LITTLE_ENDIAN__ and __BIG_ENDIAN__ based on the current underlying architecture, however, I only deduce this from studying code that depends on them. I cannot seem to find any mention of these macros in the "Using the GNU Compiler Collection" (4.2.0); no mention in Bjarne's "C++ Programming Language, 3rd ed."; no mention in Josuttis's "C++ Standard Library". So where is the list/documentation of all predefined macros the GCC provides?
gcc -E -dD - < /dev/null -- Matthew Microsoft: Expect the unexpected