changeset 343:f21d1907d47c libavutil

include all prerequisites in header files
author mru
date Sat, 16 Jun 2007 22:59:13 +0000
parents 02c938e7a087
children 580fffa86f08
files adler32.h aes.h base64.h bswap.h crc.h fifo.h integer.h internal.h intreadwrite.h md5.h rational.h sha1.h softfloat.h
diffstat 13 files changed, 29 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/adler32.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/adler32.h	Sat Jun 16 22:59:13 2007 +0000
@@ -21,6 +21,8 @@
 #ifndef ADLER32_H
 #define ADLER32_H
 
+#include <stdint.h>
+
 unsigned long av_adler32_update(unsigned long adler, const uint8_t *buf,
                                 unsigned int len);
 
--- a/aes.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/aes.h	Sat Jun 16 22:59:13 2007 +0000
@@ -21,6 +21,8 @@
 #ifndef AES_H
 #define AES_H
 
+#include <stdint.h>
+
 extern const int av_aes_size;
 
 struct AVAES;
--- a/base64.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/base64.h	Sat Jun 16 22:59:13 2007 +0000
@@ -19,6 +19,8 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stdint.h>
+
 /**
  * decodes base64
  * param order as strncpy()
--- a/bswap.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/bswap.h	Sat Jun 16 22:59:13 2007 +0000
@@ -26,6 +26,9 @@
 #ifndef __BSWAP_H__
 #define __BSWAP_H__
 
+#include <stdint.h>
+#include "common.h"
+
 #ifdef HAVE_BYTESWAP_H
 #include <byteswap.h>
 #else
--- a/crc.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/crc.h	Sat Jun 16 22:59:13 2007 +0000
@@ -21,6 +21,9 @@
 #ifndef CRC_H
 #define CRC_H
 
+#include <stdint.h>
+#include <sys/types.h>
+
 typedef uint32_t AVCRC;
 
 #if LIBAVUTIL_VERSION_INT  < (50<<16)
--- a/fifo.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/fifo.h	Sat Jun 16 22:59:13 2007 +0000
@@ -24,6 +24,8 @@
 #ifndef FIFO_H
 #define FIFO_H
 
+#include <stdint.h>
+
 typedef struct AVFifoBuffer {
     uint8_t *buffer;
     uint8_t *rptr, *wptr, *end;
--- a/integer.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/integer.h	Sat Jun 16 22:59:13 2007 +0000
@@ -29,6 +29,8 @@
 #ifndef INTEGER_H
 #define INTEGER_H
 
+#include <stdint.h>
+
 #define AV_INTEGER_SIZE 8
 
 typedef struct AVInteger{
--- a/internal.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/internal.h	Sat Jun 16 22:59:13 2007 +0000
@@ -26,6 +26,9 @@
 #ifndef INTERNAL_H
 #define INTERNAL_H
 
+#include <stdint.h>
+#include <assert.h>
+
 #ifndef attribute_used
 #if defined(__GNUC__) && (__GNUC__ > 3 || __GNUC__ == 3 && __GNUC_MINOR__ > 0)
 #    define attribute_used __attribute__((used))
--- a/intreadwrite.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/intreadwrite.h	Sat Jun 16 22:59:13 2007 +0000
@@ -19,6 +19,8 @@
 #ifndef INTREADWRITE_H
 #define INTREADWRITE_H
 
+#include <stdint.h>
+
 #ifdef __GNUC__
 
 struct unaligned_64 { uint64_t l; } __attribute__((packed));
--- a/md5.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/md5.h	Sat Jun 16 22:59:13 2007 +0000
@@ -21,6 +21,8 @@
 #ifndef MD5_H
 #define MD5_H
 
+#include <stdint.h>
+
 extern const int av_md5_size;
 
 struct AVMD5;
--- a/rational.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/rational.h	Sat Jun 16 22:59:13 2007 +0000
@@ -29,6 +29,8 @@
 #ifndef RATIONAL_H
 #define RATIONAL_H
 
+#include <stdint.h>
+
 /**
  * Rational number num/den.
  */
--- a/sha1.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/sha1.h	Sat Jun 16 22:59:13 2007 +0000
@@ -1,6 +1,8 @@
 #ifndef AV_SHA1_H
 #define AV_SHA1_H
 
+#include <stdint.h>
+
 extern const int av_sha1_size;
 
 struct AVSHA1;
--- a/softfloat.h	Wed Jun 13 11:09:07 2007 +0000
+++ b/softfloat.h	Sat Jun 16 22:59:13 2007 +0000
@@ -19,6 +19,8 @@
  *
  */
 
+#include <stdint.h>
+
 #define MIN_EXP -126
 #define MAX_EXP  126
 #define ONE_BITS 29