windows build building again. most of the functions filled in for windows. more to come!

git-svn-id: http://svn.openzap.org/svn/openzap/trunk@37 a93c3328-9c30-0410-af19-c9cd2b2d52af
This commit is contained in:
Michael Jerris
2007-05-19 05:05:29 +00:00
parent 43e6b6fa23
commit 79a13d303c
4 changed files with 98 additions and 15 deletions

View File

@@ -61,6 +61,9 @@
#ifndef strcasecmp
#define strcasecmp(s1, s2) _stricmp(s1, s2)
#endif
#ifndef strncasecmp
#define strncasecmp(s1, s2, n) _strnicmp(s1, s2, n)
#endif
#ifndef snprintf
#define snprintf _snprintf
#endif

View File

@@ -37,6 +37,7 @@
#ifdef WIN32
#include <windows.h>
typedef HANDLE zap_socket_t;
typedef unsigned __int32 uint32_t;
#else
#include <stdint.h>
typedef int zap_socket_t;