www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9296] New: LITTLE_ENDIAN and BIG_ENDIAN are always defined on Linux

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 puremagic.com
        ReportedBy: kai redstar.de


--- Comment #0 from kai 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: -------
Jan 11 2013