Revision 1fc81e73 libavutil/bswap.h

View differences:

libavutil/bswap.h
27 27
#define AVUTIL_BSWAP_H
28 28

  
29 29
#include <stdint.h>
30
#include "config.h"
30
#include "libavutil/avconfig.h"
31 31
#include "attributes.h"
32 32

  
33
#ifdef HAVE_AV_CONFIG_H
34

  
35
#include "config.h"
36

  
33 37
#if   ARCH_ARM
34 38
#   include "arm/bswap.h"
35 39
#elif ARCH_AVR32
......
42 46
#   include "x86/bswap.h"
43 47
#endif
44 48

  
49
#endif /* HAVE_AV_CONFIG_H */
50

  
45 51
#define AV_BSWAP16C(x) (((x) << 8 & 0xff00)  | ((x) >> 8 & 0x00ff))
46 52
#define AV_BSWAP32C(x) (AV_BSWAP16C(x) << 16 | AV_BSWAP16C((x) >> 16))
47 53
#define AV_BSWAP64C(x) (AV_BSWAP32C(x) << 32 | AV_BSWAP32C((x) >> 32))
......
88 94
// be2ne ... big-endian to native-endian
89 95
// le2ne ... little-endian to native-endian
90 96

  
91
#if HAVE_BIGENDIAN
97
#if AV_HAVE_BIGENDIAN
92 98
#define av_be2ne16(x) (x)
93 99
#define av_be2ne32(x) (x)
94 100
#define av_be2ne64(x) (x)

Also available in: Unified diff