提交 6e276477 authored 作者: Mike Jerris's avatar Mike Jerris

Merge pull request #1110 in FS/freeswitch from…

Merge pull request #1110 in FS/freeswitch from ~SEBASTIAN/freeswitch:bugfix/FS-9840-fix-some-warnings-V2 to master

* commit '8c94e6f5':
  FS-9840 mod_avmd: Fix implicit declaration warning
  FS-9840 sofia-sip: fix implicit declaration warning
  FS-9840 mod-verto: fix implicit declaration warning
  FS-9840 mod_sofia: fix redefine warning
...@@ -218,7 +218,7 @@ fi ...@@ -218,7 +218,7 @@ fi
AC_C_CONST AC_C_CONST
AC_C_INLINE AC_C_INLINE
AC_C_INLINE_DEFINE AC_C_INLINE_DEFINE
AC_C_BIGENDIAN(AC_DEFINE([__BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([__BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian])) AC_C_BIGENDIAN(AC_DEFINE([SWITCH_BYTE_ORDER],__BIG_ENDIAN,[Big Endian]),AC_DEFINE([SWITCH_BYTE_ORDER],__LITTLE_ENDIAN,[Little Endian]))
AC_C_VAR_FUNC AC_C_VAR_FUNC
AC_C_MACRO_FUNCTION AC_C_MACRO_FUNCTION
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#if defined(__linux__) || defined(__GLIBC__)
#include <byteswap.h>
#endif
#ifndef _MSC_VER #ifndef _MSC_VER
#define ms_sleep(x) usleep( x * 1000); #define ms_sleep(x) usleep( x * 1000);
#else #else
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
#define ISINF(x) (isinf(x)) #define ISINF(x) (isinf(x))
#else #else
int __isnan(double); int __isnan(double);
int __isinf(double);
#define ISNAN(x) (__isnan(x)) #define ISNAN(x) (__isnan(x))
#define ISINF(x) (__isinf(x)) #define ISINF(x) (__isinf(x))
#endif #endif
......
...@@ -6,6 +6,10 @@ ...@@ -6,6 +6,10 @@
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#if defined(__linux__) || defined(__GLIBC__)
#include <byteswap.h>
#endif
#ifndef _MSC_VER #ifndef _MSC_VER
#define ms_sleep(x) usleep( x * 1000); #define ms_sleep(x) usleep( x * 1000);
#else #else
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论