[Issue 9296] New: LITTLE_ENDIAN and BIG_ENDIAN are always defined on Linux

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Jan 11 12:49:10 PST 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9296

           Summary: LITTLE_ENDIAN and BIG_ENDIAN are always defined on
                    Linux
           Product: D
           Version: D1 & D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: kai at redstar.de


--- Comment #0 from kai at redstar.de 2013-01-11 12:49:09 PST ---
On a Linux system with a recent glibc both LITTLE_ENDIAN and BIG_ENDIAN are
always(!) defined. The definition is in include file <endian.h> which is
included by many other, including <stdlib.h>.

Therefore use of #if LITTLE_ENDIAN in dmd source works only by coincidence.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list