Updated CMake build script for Windows. Moving away from MinGW requirement for build

This commit is contained in:
Joseph Henry
2017-12-19 16:23:52 -08:00
parent 3fe2ed6893
commit 402083a5d8
16 changed files with 163 additions and 133 deletions

View File

@@ -127,8 +127,13 @@
*/
#define ZTO_ID_LEN 16
#if !defined(__MINGW32__)
typedef unsigned int socklen_t;
//#if !defined(__WIN32__)
//typedef unsigned int socklen_t;
//#endif
#if defined(_MSC_VER)
#include <BaseTsd.h>
typedef SSIZE_T ssize_t;
#endif
/****************************************************************************/