[Asterisk-cvs] asterisk/include/asterisk endian.h, NONE,
1.3.2.1 frame.h, 1.35.2.3, 1.35.2.4
russell at lists.digium.com
russell at lists.digium.com
Fri Jun 24 18:11:59 CDT 2005
- Previous message: [Asterisk-cvs] asterisk aesopt.h, 1.7, 1.7.2.1 dns.c, 1.10,
1.10.2.1 md5.c, 1.8, 1.8.2.1
- Next message: [Asterisk-cvs] asterisk/formats format_g726.c, 1.4,
1.4.2.1 format_g729.c, 1.12.2.1, 1.12.2.2 format_gsm.c, 1.17,
1.17.2.1 format_h263.c, 1.6, 1.6.2.1 format_ilbc.c, 1.5,
1.5.2.1 format_jpeg.c, 1.6, 1.6.2.1 format_pcm.c, 1.14,
1.14.2.1 format_pcm_alaw.c, 1.12, 1.12.2.1 format_sln.c,
1.1.2.1, 1.1.2.2 format_vox.c, 1.16, 1.16.2.1 format_wav.c,
1.18, 1.18.2.1 format_wav_gsm.c, 1.23.2.2, 1.23.2.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /usr/cvsroot/asterisk/include/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv30619/include/asterisk
Modified Files:
Tag: v1-0
frame.h
Added Files:
Tag: v1-0
endian.h
Log Message:
merge endian.h (bug #3867)
--- NEW FILE: endian.h ---
/*
* Asterisk -- A telephony toolkit for Linux.
*
* Asterisk architecture endianess compatibility definitions
*
* Copyright (C) 1999 - 2005, Digium, Inc.
*
* Mark Spencer <markster at digium.com>
*
* This program is free software, distributed under the terms of
* the GNU Lesser General Public License. Other components of
* Asterisk are distributed under The GNU General Public License
* only.
*/
#ifndef _ASTERISK_ENDIAN_H
#define _ASTERISK_ENDIAN_H
/*
* Autodetect system endianess
*/
#ifdef SOLARIS
#include "solaris-compat/compat.h"
#endif
#ifndef __BYTE_ORDER
#ifdef __linux__
#include <endian.h>
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
#if defined(__OpenBSD__)
#include <machine/types.h>
#endif /* __OpenBSD__ */
#include <machine/endian.h>
#define __BYTE_ORDER BYTE_ORDER
#define __LITTLE_ENDIAN LITTLE_ENDIAN
#define __BIG_ENDIAN BIG_ENDIAN
#else
#ifdef __LITTLE_ENDIAN__
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif /* __LITTLE_ENDIAN */
#if defined(i386) || defined(__i386__)
#define __BYTE_ORDER __LITTLE_ENDIAN
#endif /* defined i386 */
#if defined(sun) && defined(unix) && defined(sparc)
#define __BYTE_ORDER __BIG_ENDIAN
#endif /* sun unix sparc */
#endif /* linux */
#endif /* __BYTE_ORDER */
#ifndef __BYTE_ORDER
#error Need to know endianess
#endif /* __BYTE_ORDER */
#endif /* _ASTERISK_ENDIAN_H */
Index: frame.h
===================================================================
RCS file: /usr/cvsroot/asterisk/include/asterisk/frame.h,v
retrieving revision 1.35.2.3
retrieving revision 1.35.2.4
diff -u -d -r1.35.2.3 -r1.35.2.4
--- frame.h 5 Apr 2005 17:08:05 -0000 1.35.2.3
+++ frame.h 24 Jun 2005 22:12:25 -0000 1.35.2.4
@@ -23,40 +23,7 @@
#include <sys/types.h>
#include <sys/time.h>
-/*
- * Autodetect system endianess
- */
-#ifndef __BYTE_ORDER
-#ifdef __linux__
-#include <endian.h>
-#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
-#if defined(__OpenBSD__)
-#include <machine/types.h>
-#endif /* __OpenBSD__ */
-#include <machine/endian.h>
-#define __BYTE_ORDER BYTE_ORDER
-#define __LITTLE_ENDIAN LITTLE_ENDIAN
-#define __BIG_ENDIAN BIG_ENDIAN
-#else
-#ifdef __LITTLE_ENDIAN__
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif /* __LITTLE_ENDIAN */
-
-#if defined(i386) || defined(__i386__)
-#define __BYTE_ORDER __LITTLE_ENDIAN
-#endif /* defined i386 */
-
-#if defined(sun) && defined(unix) && defined(sparc)
-#define __BYTE_ORDER __BIG_ENDIAN
-#endif /* sun unix sparc */
-
-#endif /* linux */
-
-#endif /* __BYTE_ORDER */
-
-#ifndef __BYTE_ORDER
-#error Need to know endianess
-#endif /* __BYTE_ORDER */
+#include "asterisk/endian.h"
struct ast_codec_pref {
char order[32];
- Previous message: [Asterisk-cvs] asterisk aesopt.h, 1.7, 1.7.2.1 dns.c, 1.10,
1.10.2.1 md5.c, 1.8, 1.8.2.1
- Next message: [Asterisk-cvs] asterisk/formats format_g726.c, 1.4,
1.4.2.1 format_g729.c, 1.12.2.1, 1.12.2.2 format_gsm.c, 1.17,
1.17.2.1 format_h263.c, 1.6, 1.6.2.1 format_ilbc.c, 1.5,
1.5.2.1 format_jpeg.c, 1.6, 1.6.2.1 format_pcm.c, 1.14,
1.14.2.1 format_pcm_alaw.c, 1.12, 1.12.2.1 format_sln.c,
1.1.2.1, 1.1.2.2 format_vox.c, 1.16, 1.16.2.1 format_wav.c,
1.18, 1.18.2.1 format_wav_gsm.c, 1.23.2.2, 1.23.2.3
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the svn-commits
mailing list