summaryrefslogtreecommitdiff
path: root/libavutil/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavutil/common.h')
-rw-r--r--libavutil/common.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/libavutil/common.h b/libavutil/common.h
index f9c03db559..e1b14dcc53 100644
--- a/libavutil/common.h
+++ b/libavutil/common.h
@@ -35,6 +35,13 @@
#include <stdlib.h>
#include <string.h>
#include "attributes.h"
+#include "avconfig.h"
+
+#if AV_HAVE_BIGENDIAN
+# define AV_NE(be, le) be
+#else
+# define AV_NE(be, le) le
+#endif
//rounded division & shift
#define RSHIFT(a,b) ((a) > 0 ? ((a) + ((1<<(b))>>1))>>(b) : ((a) + ((1<<(b))>>1)-1)>>(b))