vovida-endian.h
上传用户:sy_wanhua
上传日期:2013-07-25
资源大小:3048k
文件大小:1k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

C/C++

  1. #ifdef __vxworks
  2.   #define __BYTE_ORDER _BYTE_ORDER
  3.   #define __LITTLE_ENDIAN _LITTLE_ENDIAN
  4.   #define __BIG_ENDIAN _BIG_ENDIAN
  5. #else
  6.   #ifdef __sgi
  7.     #include <sys/endian.h>
  8.   #else
  9.     #ifdef __sparc
  10.       #include <sys/isa_defs.h>
  11.       #ifdef __LITTLE_ENDIAN
  12.         #define __BYTE_ORDER __LITTLE_ENIDAN
  13.       #endif
  14.       #ifdef __BIG_ENDIAN
  15.         #define __BYTE_ORDER __BIG_ENDIAN 
  16.       #endif
  17.     #else
  18.       #ifdef __linux__
  19.         #include <endian.h>
  20.       #endif
  21.       #ifdef __FreeBSD__
  22.         #include <machine/endian.h>
  23.       #endif
  24.     #endif
  25.   #endif
  26. #endif