windows port

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10906 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Michael Jerris
2008-12-22 05:37:54 +00:00
parent d7d540840a
commit d72a4ea77d
3 changed files with 25 additions and 4 deletions
+8
View File
@@ -167,8 +167,15 @@ typedef struct esl_event esl_event_t;
#include <strings.h>
#endif
#include <assert.h>
#if (_MSC_VER >= 1400) // VC8+
#define esl_assert(expr) assert(expr);__analysis_assume( expr )
#endif
#ifndef esl_assert
#define esl_assert(_x) assert(_x)
#endif
#define esl_safe_free(_x) if (_x) free(_x); _x = NULL
#define esl_strlen_zero(s) (!s || *(s) == '\0')
#define esl_strlen_zero_buf(s) (*(s) == '\0')
@@ -188,6 +195,7 @@ typedef __int8 int8_t;
typedef intptr_t esl_ssize_t;
typedef int esl_filehandle_t;
#define ESL_SOCK_INVALID INVALID_SOCKET
#define strerror_r(num, buf, size) strerror_s(buf, size, num)
#else
#include <stdint.h>
#include <sys/types.h>