Ticket #14904: icaltz-util.diff

File icaltz-util.diff, 644 bytes (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 16 years ago)
  • ./calendar/libical/src/libical/icaltz-util.

    old new  
    3030#define BYTE_ORDER LITTLE_ENDIAN
    3131#define bswap_32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) <<  8) | (((val) & 0x00ff0000U) >>  8) | (((val) & 0xff000000U) >> 24))
    3232#else
    33 #include <byteswap.h>
    34 #include <endian.h>
     33#define bswap_32(val) ((((val) & 0x000000ffU) << 24) | (((val) & 0x0000ff00U) <<  8) | (((val) & 0x00ff0000U) >>  8) | (((val) & 0xff000000U) >> 24))
     34#include <machine/endian.h>
    3535#endif
    3636#endif
    3737#include <limits.h>