Menu

#52 big endian host (corrected, for id3lib-3.8.3)

open
None
5
2003-12-21
2003-12-15
No

While testing id3lib-3.8.3 on MacOSX I found that the the
problem addressed by J.A. Gutierrez (Patch: 'big endian
host') still is present in 3.8.3.

I couldn't find his patch in the patches section, but found it
in the mailing list... anyway I have updated it for 3.8.3
and modified it slightly, as it didn't work as expected.
(io::readLENumber and io::readBENumber don't need to be
touched as they already seem to be endian-safe.)

To detect the endianness of the system we should use the
standard autoconf test AC_C_BIGENDIAN(), which sets the
variable WORDS_BIGENDIAN. So AC_C_BIGENDIAN()
should be added to the section 'Checks for typedefs,
structures, and compiler characteristics.' in configure.in or
configure.ac.

Discussion

  • Sebastian Heimann

    big endian patch for id3lib-3.8.3

     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-21
    • assigned_to: nobody --> t1mpy
     
  • T.H.F. Klok

    T.H.F. Klok - 2003-12-22

    Logged In: YES
    user_id=564388

    It's in cvs, except for the check AC_C_BIGENDIAN, so i leave
    it open for now, so i don't forget.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.