Changes to enable WIN CE support
This commit is contained in:
parent
f522895234
commit
2f9da92e48
4 changed files with 9 additions and 4 deletions
|
@ -8,6 +8,7 @@ Fixes
|
|||
|
||||
2) Fix IPV6 build breakage
|
||||
|
||||
3) Some fixes for WinCE build
|
||||
|
||||
|
||||
v2.0.0
|
||||
|
|
|
@ -112,16 +112,17 @@ struct sockaddr_in;
|
|||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <basetsd.h>
|
||||
#ifndef _WIN32_WCE
|
||||
#include <stdint.h>
|
||||
#include <fcntl.h>
|
||||
#else
|
||||
#define _O_RDONLY 0x0000
|
||||
#define O_RDONLY _O_RDONLY
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
// Visual studio older than 2015 and WIN_CE has only _stricmp
|
||||
#if (defined(_MSC_VER) && _MSC_VER < 1900) || defined(_WIN32_WCE)
|
||||
#define strcasecmp _stricmp
|
||||
#else
|
||||
#define strcasecmp stricmp
|
||||
|
|
|
@ -31,7 +31,10 @@ time_in_microseconds()
|
|||
time_t time(time_t *t)
|
||||
{
|
||||
time_t ret = time_in_microseconds() / 1000000;
|
||||
|
||||
if(t != NULL)
|
||||
*t = ret;
|
||||
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -87,7 +87,7 @@
|
|||
#define __func__ __FUNCTION__
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32_WCE
|
||||
#if defined(_MSC_VER) || defined(_WIN32_WCE)
|
||||
#define vsnprintf _vsnprintf
|
||||
#else
|
||||
#ifdef LWS_HAVE__VSNPRINTF
|
||||
|
|
Loading…
Add table
Reference in a new issue