mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
More cleanups and OSX fixes for 10.3
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1678 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -26,7 +26,7 @@ extern "C" {
|
||||
#ifndef __BYTE_ORDER
|
||||
#ifdef __linux__
|
||||
#include <endian.h>
|
||||
#elif (defined(__OpenBSD__) || defined(__APPLE__))
|
||||
#elif defined(__OpenBSD__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__APPLE__)
|
||||
#include <machine/endian.h>
|
||||
#define __BYTE_ORDER BYTE_ORDER
|
||||
#define __LITTLE_ENDIAN LITTLE_ENDIAN
|
||||
@@ -36,11 +36,11 @@ extern "C" {
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#endif /* __LITTLE_ENDIAN */
|
||||
|
||||
#if (defined(i386))
|
||||
#if defined(i386) || defined(__i386__)
|
||||
#define __BYTE_ORDER __LITTLE_ENDIAN
|
||||
#endif /* defined i386 */
|
||||
|
||||
#if (defined(sun) && defined(unix) && defined(sparc))
|
||||
#if defined(sun) && defined(unix) && defined(sparc)
|
||||
#define __BYTE_ORDER __BIG_ENDIAN
|
||||
#endif /* sun unix sparc */
|
||||
|
||||
|
@@ -18,5 +18,7 @@ extern int ast_tzsetwall(void);
|
||||
extern void ast_tzset(const char *name);
|
||||
extern struct tm *ast_localtime(const time_t *timep, struct tm *p_tm, const char *zone);
|
||||
extern time_t ast_mktime(struct tm * const tmp, const char *zone);
|
||||
extern char *ast_ctime(const time_t * const timep);
|
||||
extern char *ast_ctime_r(const time_t * const timep, char *buf);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user