Changeset 309

Show
Ignore:
Timestamp:
11/21/99 21:26:13 (14 years ago)
Author:
ucacoxh
Message:

- Added test for WORDS_BIGENDIAN to bottom of acconfig.h. Now defines

WORDS_SMALLENDIAN if WORDS_BIGENDIAN not defined.

- Added #error to rtp.h if neither endian macros defined. Previously only

checked for WORDS_BIGENDIAN so if using on a big endian box without
this defined, i.e. because app using library does not define it,
then you would get burned (I did :-). [oth]

Location:
common/trunk/src
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • common/trunk/src/acconfig.h

    r308 r309  
    4444#undef Linux 
    4545#undef HPUX 
     46 
     47@BOTTOM@ 
     48 
     49#ifndef WORDS_BIGENDIAN 
     50#define WORDS_SMALLENDIAN 
     51#endif 
  • common/trunk/src/config.h.in

    r308 r309  
    7070/* Define if you have the inet_pton function.  */ 
    7171#undef HAVE_INET_PTON 
     72 
     73#ifndef WORDS_BIGENDIAN 
     74#define WORDS_SMALLENDIAN 
     75#endif 
  • common/trunk/src/rtp.h

    r304 r309  
    4444#define RTP_MAX_PACKET_LEN 1500 
    4545 
     46#if !defined(WORDS_BIGENDIAN) && !defined(WORDS_SMALLENDIAN) 
     47#error RTP library requires WORDS_BIGENDIAN or WORDS_SMALLENDIAN to be defined. 
     48#endif 
     49 
    4650typedef struct { 
    4751        /* The following are pointers to the data in the packet as    */