summaryrefslogtreecommitdiff
path: root/src/demuxers
diff options
context:
space:
mode:
authorCarlo Bramini <carlo.bramix@libero.it>2009-10-13 22:06:09 +0100
committerCarlo Bramini <carlo.bramix@libero.it>2009-10-13 22:06:09 +0100
commit736cc44919cb9b010e4784821afb060b1352945a (patch)
tree9080dd92c9cec9ad350f63d74a20fc6d8cc60c69 /src/demuxers
parent16a2e010084afeca017005cee5ae6155e69f94c6 (diff)
downloadxine-lib-736cc44919cb9b010e4784821afb060b1352945a.tar.gz
xine-lib-736cc44919cb9b010e4784821afb060b1352945a.tar.bz2
#include guards and __attribute__ fixups
Diffstat (limited to 'src/demuxers')
-rw-r--r--src/demuxers/demux_flac.c3
-rw-r--r--src/demuxers/demux_real.c3
-rw-r--r--src/demuxers/demux_tta.c2
3 files changed, 7 insertions, 1 deletions
diff --git a/src/demuxers/demux_flac.c b/src/demuxers/demux_flac.c
index c14536040..c4132b767 100644
--- a/src/demuxers/demux_flac.c
+++ b/src/demuxers/demux_flac.c
@@ -33,6 +33,9 @@
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
#define LOG_MODULE "demux_flac"
#define LOG_VERBOSE
diff --git a/src/demuxers/demux_real.c b/src/demuxers/demux_real.c
index 8f1e4f539..774c74e2c 100644
--- a/src/demuxers/demux_real.c
+++ b/src/demuxers/demux_real.c
@@ -42,6 +42,9 @@
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
+#ifdef HAVE_MALLOC_H
+#include <malloc.h>
+#endif
#define LOG_MODULE "demux_real"
#define LOG_VERBOSE
diff --git a/src/demuxers/demux_tta.c b/src/demuxers/demux_tta.c
index 24a983157..7853c8182 100644
--- a/src/demuxers/demux_tta.c
+++ b/src/demuxers/demux_tta.c
@@ -58,7 +58,7 @@ typedef struct {
uint32_t samplerate;
uint32_t data_length;
uint32_t crc32;
- } __attribute__((__packed__)) tta;
+ } XINE_PACKED tta;
uint8_t buffer[22]; /* This is the size of the header */
} header;
} demux_tta_t;