mediaextract/audioextract.h
2012-12-29 07:48:14 +01:00

41 lines
784 B
C

#ifndef AUDIOEXTRACT_H__
#define AUDIOEXTRACT_H__
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/mman.h>
#if (defined(_WIN16) || defined(_WIN32) || defined(_WIN64)) && !defined(__WINDOWS__)
#define __WINDOWS__
#endif
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__DragonFly__)
# include <sys/endian.h>
# define le32toh letoh32
# define be32toh betoh32
# define le16toh letoh16
# define be16toh betoh16
#elif defined(__OpenBSD__)
# include <sys/endian.h>
#else
# include <endian.h>
#endif
#define MAGIC(STR) (*(const uint32_t*)(STR))
int probalby_mod_text(const unsigned char *str, size_t length);
#endif /* AUDIOEXTRACT_H__ */